7fb9357d by David LaPalomento

Add a temporary fudge factor for seeking

getMediaIndexForTime() looks to have a boundary issue that is causing seeks to be unreliable in live streams. While we track that down, add a tiny delta to seeks to avoid the problem.
1 parent 205d32e2
......@@ -1206,7 +1206,7 @@ videojs.HlsHandler.prototype.updateEndHandler_ = function () {
var next = this.findNextBufferedRange_();
if (next.length) {
videojs.log('tried seeking to', this.tech_.currentTime(), 'but that was too early, retrying at', next.start(0));
this.tech_.setCurrentTime(next.start(0));
this.tech_.setCurrentTime(next.start(0) + TIME_FUDGE_FACTOR);
}
}
}
......