mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix crash caused by default resolution
This commit is contained in:
parent
74651b7617
commit
44163d5659
@ -1166,7 +1166,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
}
|
||||
|
||||
private fun setStreamSource(streams: Streams) {
|
||||
val defaultResolution = PlayerHelper.getDefaultResolution(requireContext())
|
||||
val defaultResolution = PlayerHelper.getDefaultResolution(requireContext()).replace("p", "")
|
||||
if (defaultResolution != "") {
|
||||
val params = trackSelector.buildUponParameters()
|
||||
.setMaxVideoSize(Int.MAX_VALUE, defaultResolution.toInt())
|
||||
|
Loading…
Reference in New Issue
Block a user