mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-09 08:27:54 +00:00
fix: http protocol redirects
This commit is contained in:
parent
ad4900370d
commit
4dbdd16e48
1 changed files with 4 additions and 2 deletions
|
|
@ -16,7 +16,9 @@ internal object PlatformPlaybackDataSourceFactory {
|
|||
val networkFactory: DataSource.Factory = if (useYoutubeChunkedPlayback) {
|
||||
YoutubeChunkedDataSourceFactory(defaultRequestHeaders = defaultRequestHeaders)
|
||||
} else {
|
||||
DefaultHttpDataSource.Factory().setDefaultRequestProperties(defaultRequestHeaders)
|
||||
DefaultHttpDataSource.Factory()
|
||||
.setAllowCrossProtocolRedirects(true)
|
||||
.setDefaultRequestProperties(defaultRequestHeaders)
|
||||
}
|
||||
val baseFactory: DataSource.Factory = DefaultDataSource.Factory(context, networkFactory)
|
||||
return if (defaultResponseHeaders.isEmpty()) {
|
||||
|
|
@ -28,4 +30,4 @@ internal object PlatformPlaybackDataSourceFactory {
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue