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