mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-08-01 09:09:29 +00:00
fix: http protocol redirects
This commit is contained in:
parent
1e67e8a9e5
commit
11222a2db3
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ internal object PlatformPlaybackDataSourceFactory {
|
|||
useYoutubeChunkedPlayback: Boolean,
|
||||
): DataSource.Factory {
|
||||
val httpFactory = DefaultHttpDataSource.Factory()
|
||||
.setAllowCrossProtocolRedirects(true)
|
||||
.setDefaultRequestProperties(defaultRequestHeaders)
|
||||
val baseFactory: DataSource.Factory = DefaultDataSource.Factory(context, httpFactory)
|
||||
return if (defaultResponseHeaders.isEmpty()) {
|
||||
|
|
@ -24,4 +25,4 @@ internal object PlatformPlaybackDataSourceFactory {
|
|||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue