Skip to content

Commit

Permalink
Fix: shaka-project#1668 Relative MPD/Location URLs not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Gelun committed Nov 15, 2018
1 parent f37578b commit f0b47d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,10 @@ shaka.dash.DashParser.prototype.processManifest_ =
.map(XmlUtils.getContents)
.filter(Functional.isNotNull);
if (locations.length > 0) {
this.manifestUris_ = locations;
manifestBaseUris = locations;
let absoluteLocations = shaka.util.ManifestParserUtils.resolveUris(
manifestBaseUris, locations);
this.manifestUris_ = absoluteLocations;
manifestBaseUris = absoluteLocations;
}

let uris = XmlUtils.findChildren(mpd, 'BaseURL').map(XmlUtils.getContents);
Expand Down

0 comments on commit f0b47d2

Please sign in to comment.