Skip to content

Commit

Permalink
Fix start time in live streams.
Browse files Browse the repository at this point in the history
Commit 5cb7204 broke the start time calculations for live streams.
We don't need to set the start time with non-0 play-range start
values since Playhead will clamp the start time anyway.

Issue #1069

Change-Id: I40915cc5ecd81085c55149e7267d5025745ddb47
  • Loading branch information
TheModMaker authored and joeyparrish committed Oct 22, 2017
1 parent 5d5e39e commit fd93424
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,7 @@ shaka.Player.prototype.load = function(manifestUri, opt_startTime,
}
// MediaSource is open, so create the Playhead, MediaSourceEngine, and
// StreamingEngine.
var startTime = opt_startTime || this.config_.playRangeStart;
this.playhead_ = this.createPlayhead(startTime);
this.playhead_ = this.createPlayhead(opt_startTime);
this.playheadObserver_ = this.createPlayheadObserver();
this.mediaSourceEngine_ = this.createMediaSourceEngine();

Expand Down

0 comments on commit fd93424

Please sign in to comment.