Skip to content

Commit

Permalink
specific rebuffering goal or manifest one or default one
Browse files Browse the repository at this point in the history
  • Loading branch information
fadomire committed Sep 12, 2018
1 parent 676dd21 commit 98b4e19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/media/playhead_observer.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ shaka.media.PlayheadObserver.prototype.onWatchdogTimer_ = function() {
this.setBuffering_(true);
}
} else {
let rebufferingGoal = Math.max(
this.minBufferTime_,
this.config_.rebufferingGoal);
let rebufferingGoal = this.config_.rebufferingGoal ||
this.minBufferTime_ ||
this.config_.defaultRebufferingGoal;
if (bufferedToEnd || bufferedAhead >= rebufferingGoal) {
this.setBuffering_(false);
}
Expand Down

0 comments on commit 98b4e19

Please sign in to comment.