aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-08-24 22:26:12 -0700
committerJesús <heckyel@hyperbola.info>2021-08-29 21:01:54 -0500
commit70eb5cc94fbfd9cd27b2b72dc01e68351a204e26 (patch)
tree89b238902fd1fe1d2c5acdaff9206d600bd2f787 /youtube
parentfa3b78583fe1d9325cfa43dcee63968f911a1cc4 (diff)
downloadyt-local-70eb5cc94fbfd9cd27b2b72dc01e68351a204e26.tar.lz
yt-local-70eb5cc94fbfd9cd27b2b72dc01e68351a204e26.tar.xz
yt-local-70eb5cc94fbfd9cd27b2b72dc01e68351a204e26.zip
avmerge: Remove obsolete shouldFetchNextSegment function
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube')
-rw-r--r--youtube/static/js/av-merge.js9
1 files changed, 0 insertions, 9 deletions
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;