Skip to content

Commit

Permalink
fix(DASH): ContentSteering promise is resolved too late for fetching …
Browse files Browse the repository at this point in the history
…of init segment (#8126)

Fixes: #8123
  • Loading branch information
avelad committed Feb 20, 2025
1 parent b713198 commit 2442a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ shaka.dash.DashParser = class {
urlParams: () => '',
};

await contentSteeringPromise;

this.gapCount_ = 0;
const periodsAndDuration = this.parsePeriods_(
context, getBaseUris, mpd, /* newPeriod= */ false);
Expand All @@ -794,8 +796,6 @@ shaka.dash.DashParser = class {
presentationTimeline.assertIsValid();
}

await contentSteeringPromise;

if (this.isLowLatency_ && this.lowLatencyMode_) {
const presentationDelay = suggestedPresentationDelay != null ?
suggestedPresentationDelay : this.config_.defaultPresentationDelay;
Expand Down

0 comments on commit 2442a51

Please sign in to comment.