0fa22184 by Jon-Carlos Rivera

Need to walk forward less than targetDuration because that will often skip an entire segment (#714)

Segment durations are defined in the spec as being less than or equal to target-duration
1 parent 9ed1b5bb
...@@ -474,7 +474,7 @@ export default class SegmentLoader extends videojs.EventTarget { ...@@ -474,7 +474,7 @@ export default class SegmentLoader extends videojs.EventTarget {
474 // Increment the timeCorrection_ variable to push the fetcher forward 474 // Increment the timeCorrection_ variable to push the fetcher forward
475 // in time and hopefully skip any gaps or flaws in our understanding 475 // in time and hopefully skip any gaps or flaws in our understanding
476 // of the media 476 // of the media
477 let correctionApplied = this.incrementTimeCorrection_(this.playlist_.targetDuration, 1); 477 let correctionApplied = this.incrementTimeCorrection_(this.playlist_.targetDuration / 2, 1);
478 478
479 if (correctionApplied && !this.paused()) { 479 if (correctionApplied && !this.paused()) {
480 this.fillBuffer_(); 480 this.fillBuffer_();
......