fix string

This commit is contained in:
Bnyro 2022-07-14 19:52:27 +02:00
parent 9000745759
commit a8e9dcf0da
2 changed files with 5 additions and 3 deletions

View File

@ -1196,9 +1196,10 @@ class PlayerFragment : Fragment() {
val defRes = PreferenceHelper.getString(
requireContext(),
"default_resolution",
"auto"
"hls"
)!!
if (defRes != "auto") {
if (defRes != "hls") {
videosNameArray.forEachIndexed { index, pipedStream ->
// search for quality preference in the available stream sources
if (pipedStream.contains(defRes)) {
@ -1210,6 +1211,7 @@ class PlayerFragment : Fragment() {
}
}
}
// if default resolution isn't set or available, use hls if available
if (streams.hls != null) {
val mediaItem: MediaItem = MediaItem.Builder()

View File

@ -583,7 +583,7 @@
<item>144p</item>
</string-array>
<string-array name="defresValue">
<item></item>
<item>hls</item>
<item>1080p</item>
<item>720p</item>
<item>480p</item>