Browse Source

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
pull/6/head
Jon-Carlos Rivera 9 years ago
parent
commit
0fa2218459
  1. 2
      src/segment-loader.js

2
src/segment-loader.js

@ -474,7 +474,7 @@ export default class SegmentLoader extends videojs.EventTarget {
// Increment the timeCorrection_ variable to push the fetcher forward
// in time and hopefully skip any gaps or flaws in our understanding
// of the media
let correctionApplied = this.incrementTimeCorrection_(this.playlist_.targetDuration, 1);
let correctionApplied = this.incrementTimeCorrection_(this.playlist_.targetDuration / 2, 1);
if (correctionApplied && !this.paused()) {
this.fillBuffer_();

Loading…
Cancel
Save