avmerge: Remove obsolete shouldFetchNextSegment function

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-08-24 22:26:12 -07:00 committed by Jesús
parent fa3b78583f
commit 70eb5cc94f
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -228,15 +228,6 @@ Stream.prototype.getSegmentIdx = function(videoTime) {
this.reportError('Could not find segment index for time', videoTime);
return 0;
}
Stream.prototype.shouldFetchNextSegment = function(nextSegment) {
// > 15% done with current segment
if (nextSegment >= this.sidx.entries.length){
return false;
}
var entry = this.sidx.entries[nextSegment - 1];
var currentTick = this.video.currentTime * this.sidx.timeScale;
return currentTick > (entry.tickStart + entry.subSegmentDuration*0.15);
}
Stream.prototype.checkBuffer = async function() {
if (this.avMerge.seeking) {
return;