mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #3172 from Bnyro/master
Fix that some videos are not playable using DASH
This commit is contained in:
commit
015e389227
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user