mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +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 streams = streams ?: return
|
||||||
|
|
||||||
val (uri, mimeType) =
|
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
|
PlayerHelper.createDashSource(streams, this) to MimeTypes.APPLICATION_MPD
|
||||||
} else {
|
} else {
|
||||||
ProxyHelper.unwrapStreamUrl(streams.hls.orEmpty())
|
ProxyHelper.unwrapStreamUrl(streams.hls.orEmpty())
|
||||||
|
@ -1308,7 +1308,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
lbryHlsUrl.toUri() to MimeTypes.APPLICATION_M3U8
|
lbryHlsUrl.toUri() to MimeTypes.APPLICATION_M3U8
|
||||||
}
|
}
|
||||||
// DASH
|
// 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
|
// only use the dash manifest generated by YT if either it's a livestream or no other source is available
|
||||||
val dashUri =
|
val dashUri =
|
||||||
if (streams.livestream && streams.dash != null) {
|
if (streams.livestream && streams.dash != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user