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 () { ...@@ -1206,7 +1206,7 @@ videojs.HlsHandler.prototype.updateEndHandler_ = function () {
1206 var next = this.findNextBufferedRange_(); 1206 var next = this.findNextBufferedRange_();
1207 if (next.length) { 1207 if (next.length) {
1208 videojs.log('tried seeking to', this.tech_.currentTime(), 'but that was too early, retrying at', next.start(0)); 1208 videojs.log('tried seeking to', this.tech_.currentTime(), 'but that was too early, retrying at', next.start(0));
1209 this.tech_.setCurrentTime(next.start(0)); 1209 this.tech_.setCurrentTime(next.start(0) + TIME_FUDGE_FACTOR);
1210 } 1210 }
1211 } 1211 }
1212 } 1212 }
......