mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-06 06:07:30 +00:00
fix(compil): oups, compil failed
This commit is contained in:
@@ -298,7 +298,7 @@ class OmniPlayer(
|
||||
override val renditions by mainThreadProperty {
|
||||
val group =
|
||||
player.currentTracks.groups.firstOrNull { it.isSelected && it.type == C.TRACK_TYPE_VIDEO }
|
||||
?: return emptyArray()
|
||||
?: return@mainThreadProperty emptyArray<Rendition>()
|
||||
|
||||
val currentIndex = when {
|
||||
isAutoQuality -> {
|
||||
@@ -326,7 +326,7 @@ class OmniPlayer(
|
||||
)
|
||||
)
|
||||
}
|
||||
return result.toTypedArray()
|
||||
return@mainThreadProperty result.toTypedArray()
|
||||
}
|
||||
|
||||
override var isAutoQuality by mainThreadProperty {
|
||||
@@ -478,9 +478,6 @@ class OmniPlayer(
|
||||
return tracks.associateBy { it.id }
|
||||
}
|
||||
|
||||
private fun getRenditions(): Array<Rendition> {
|
||||
}
|
||||
|
||||
override fun selectRendition(rendition: Rendition?) {
|
||||
runOnMainThreadSync {
|
||||
if (rendition == null) {
|
||||
|
||||
Reference in New Issue
Block a user