Skip to content

Commit

Permalink
fix(DASH): Fix bad url when specify MPD BaseURL and AdaptationSet Bas…
Browse files Browse the repository at this point in the history
…eURL
  • Loading branch information
avelad committed Nov 14, 2023
1 parent 0dba256 commit 47261f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,13 @@ shaka.dash.SegmentTemplate = class {

const repId = context.representation.id;
const bandwidth = context.bandwidth || null;
const getBaseUris = context.representation.getBaseUris;
const getUris = () => {
goog.asserts.assert(initialization, 'Should have returned earler');
const filledTemplate = MpdUtils.fillUriTemplate(
initialization, repId, null, null, bandwidth, null);
const resolvedUris = ManifestParserUtils.resolveUris(
context.representation.getBaseUris(), [filledTemplate]);
getBaseUris(), [filledTemplate]);
return resolvedUris;
};
const qualityInfo = shaka.dash.SegmentBase.createQualityInfo(context);
Expand Down

0 comments on commit 47261f7

Please sign in to comment.