Skip to content

Commit

Permalink
fix: Fix playRangeEnd does not work with HLS streams (#5494)
Browse files Browse the repository at this point in the history
Fixes #5471
  • Loading branch information
avelad authored and joeyparrish committed Aug 19, 2023
1 parent 7c55f42 commit 899eb07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2192,6 +2192,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 899eb07

Please sign in to comment.