From 70eb5cc94fbfd9cd27b2b72dc01e68351a204e26 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 24 Aug 2021 22:26:12 -0700 Subject: avmerge: Remove obsolete shouldFetchNextSegment function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/static/js/av-merge.js | 9 --------- 1 file changed, 9 deletions(-) (limited to 'youtube') diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js index 0435157..d05d2c1 100644 --- a/youtube/static/js/av-merge.js +++ b/youtube/static/js/av-merge.js @@ -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; -- cgit v1.2.3