diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index fee7e57be..62a6a0df3 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -1275,7 +1275,10 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions { if (!PreferenceHelper.getBoolean(PreferenceKeys.USE_HLS_OVER_DASH, false) && streams.videoStreams.isNotEmpty() ) { - val uri = streams.dash?.toUri() ?: let { + // only use the dash manifest generated by YT if either it's a livestream or no other source is available + val uri = streams.dash?.toUri().takeIf { + streams.livestream || streams.videoStreams.isEmpty() + } ?: let { val manifest = DashHelper.createManifest(streams) // encode to base64