Skip to content

Commit

Permalink
fix: Fix bug with live start time (#5835)
Browse files Browse the repository at this point in the history
This fixes a bug introduced by the removal of the state graph that
caused live content to start out at time=0, instead of at the live edge.
  • Loading branch information
theodab authored Oct 31, 2023
1 parent 4425dca commit 577d141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
this.config_.playRangeStart,
this.config_.playRangeEnd);

this.playhead_ = this.createPlayhead(this.startTime_ || 0);
this.playhead_ = this.createPlayhead(this.startTime_);
this.playheadObservers_ =
this.createPlayheadObserversForMSE_(startTimeOfLoad);

Expand Down

0 comments on commit 577d141

Please sign in to comment.