mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
oops size not length
This commit is contained in:
parent
1d93eb772e
commit
66edec8a45
1 changed files with 2 additions and 2 deletions
|
@ -968,8 +968,8 @@ class CS3IPlayer : IPlayer {
|
||||||
subtitlesUpdates?.invoke()
|
subtitlesUpdates?.invoke()
|
||||||
|
|
||||||
// if there are no video tracks, but there are audio tracks, don't pause playback while in background
|
// if there are no video tracks, but there are audio tracks, don't pause playback while in background
|
||||||
val videoTrackCount = tracks.groups.filter { it.type == TRACK_TYPE_VIDEO }.length ?: 0
|
val videoTrackCount = tracks.groups.filter { it.type == TRACK_TYPE_VIDEO }.size
|
||||||
val audioTrackCount = tracks.groups.filter { it.type == TRACK_TYPE_AUDIO }.length ?: 0
|
val audioTrackCount = tracks.groups.filter { it.type == TRACK_TYPE_AUDIO }.size
|
||||||
shouldPauseUnfocused = videoTrackCount > 0 || audioTrackCount == 0
|
shouldPauseUnfocused = videoTrackCount > 0 || audioTrackCount == 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue