avmerge: Remove obsolete shouldFetchNextSegment function
Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
parent
fa3b78583f
commit
70eb5cc94f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user