diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index d919209a0..eff82fe5f 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -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() diff --git a/app/src/main/res/layout/exo_styled_player_control_view.xml b/app/src/main/res/layout/exo_styled_player_control_view.xml index 6d56caafe..21e47fef8 100644 --- a/app/src/main/res/layout/exo_styled_player_control_view.xml +++ b/app/src/main/res/layout/exo_styled_player_control_view.xml @@ -147,6 +147,7 @@ android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="12dp" + android:layout_marginEnd="12dp" android:layout_weight="1" android:visibility="invisible"> diff --git a/app/src/main/res/layout/fragment_player.xml b/app/src/main/res/layout/fragment_player.xml index 4ee4a9401..6584543e2 100644 --- a/app/src/main/res/layout/fragment_player.xml +++ b/app/src/main/res/layout/fragment_player.xml @@ -363,7 +363,7 @@ android:layout_height="0dp" android:background="?attr/colorSurface" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHeight_percent="0.3" + app:layout_constraintHeight_percent="0.275" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/values/array.xml b/app/src/main/res/values/array.xml index 6c7eac38c..119e84cdc 100644 --- a/app/src/main/res/values/array.xml +++ b/app/src/main/res/values/array.xml @@ -583,7 +583,7 @@ 144p - + hls 1080p 720p 480p