mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 07:20:30 +05:30
Fix the list of available resolutions
This commit is contained in:
parent
4574c57894
commit
e01a3d8465
@ -1206,7 +1206,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
private fun getAvailableResolutions(): List<VideoResolution> {
|
||||
val resolutions = exoPlayer.currentTracks.groups.map { group ->
|
||||
(0 until group.length).map {
|
||||
group.getTrackFormat(it).width
|
||||
group.getTrackFormat(it).height
|
||||
}
|
||||
}.flatten()
|
||||
.filter { it > 0 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user