mirror of
https://github.com/androidx/media.git
synced 2025-05-15 11:39:56 +08:00
DASHMediaSource: ensure MPD.Location is applied in also case of http redirect
This commit is contained in:
parent
087c6e0e05
commit
ca70b10c03
@ -809,7 +809,7 @@ public final class DashMediaSource extends BaseMediaSource {
|
||||
// this load. If it was, we ignore the manifest location and prefer the manual replacement.
|
||||
@SuppressWarnings("ReferenceEquality")
|
||||
boolean isSameUriInstance = loadable.dataSpec.uri == manifestUri;
|
||||
if (isSameUriInstance) {
|
||||
if (isSameUriInstance || isRedirect) {
|
||||
manifestUri = manifest.location;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user