Skip to content

Commit

Permalink
fix: Fix playRangeEnd does not work with HLS streams (shaka-project#5494
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 18, 2023
1 parent c2b13f1 commit 1775672
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/player.js
Expand Up @@ -2191,6 +2191,10 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
await Promise.all(createSegmentIndexPromises);
}

shaka.Player.applyPlayRange_(this.manifest_.presentationTimeline,
this.config_.playRangeStart,
this.config_.playRangeEnd);

this.playhead_ = this.createPlayhead(has.startTime);
this.playheadObservers_ =
this.createPlayheadObserversForMSE_(has.startTimeOfLoad);
Expand Down

0 comments on commit 1775672

Please sign in to comment.