mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
feat: allow dash without piped proxy (#6485)
This commit is contained in:
parent
bbdaf3285d
commit
b29d4c6fd4
@ -374,7 +374,7 @@ class OnlinePlayerService : LifecycleService() {
|
||||
val streams = streams ?: return
|
||||
|
||||
val (uri, mimeType) =
|
||||
if (!PlayerHelper.useHlsOverDash && streams.audioStreams.isNotEmpty() && !PlayerHelper.disablePipedProxy) {
|
||||
if (!PlayerHelper.useHlsOverDash && streams.audioStreams.isNotEmpty()) {
|
||||
PlayerHelper.createDashSource(streams, this) to MimeTypes.APPLICATION_MPD
|
||||
} else {
|
||||
ProxyHelper.unwrapStreamUrl(streams.hls.orEmpty())
|
||||
|
@ -1308,7 +1308,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
lbryHlsUrl.toUri() to MimeTypes.APPLICATION_M3U8
|
||||
}
|
||||
// DASH
|
||||
!PlayerHelper.useHlsOverDash && streams.videoStreams.isNotEmpty() && !PlayerHelper.disablePipedProxy -> {
|
||||
!PlayerHelper.useHlsOverDash && streams.videoStreams.isNotEmpty() -> {
|
||||
// only use the dash manifest generated by YT if either it's a livestream or no other source is available
|
||||
val dashUri =
|
||||
if (streams.livestream && streams.dash != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user