diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-29 11:10:41 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 22:57:03 -0500 |
commit | c1dbc6c4113b91769527ed4313d49b556cf0f6a5 (patch) | |
tree | 27d1eab19edac946c1dcff7168451b15d076bfb7 /youtube/static | |
parent | 92bdbf072eebe6d85276e195936efff5b8d5f42c (diff) | |
download | yt-local-c1dbc6c4113b91769527ed4313d49b556cf0f6a5.tar.lz yt-local-c1dbc6c4113b91769527ed4313d49b556cf0f6a5.tar.xz yt-local-c1dbc6c4113b91769527ed4313d49b556cf0f6a5.zip |
av-merge: print sourceBuffer.buffered in printDebuggingInfo
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/static')
-rw-r--r-- | youtube/static/js/av-merge.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js index 1d5ada6..fb8b50c 100644 --- a/youtube/static/js/av-merge.js +++ b/youtube/static/js/av-merge.js @@ -125,6 +125,13 @@ AVMerge.prototype.printDebuggingInfo = function() { reportDebug('mediaSource.readyState:', this.mediaSource.readyState); reportDebug('videoEndOfStreamCalled', this.videoEndOfStreamCalled); reportDebug('audioEndOfStreamCalled', this.audioEndOfStreamCalled); + for (let obj of [this.videoStream, this.audioStream]) { + reportDebug(obj.streamType, 'stream buffered times:'); + for (let i=0; i<obj.sourceBuffer.buffered.length; i++) { + reportDebug(String(obj.sourceBuffer.buffered.start(i)) + '-' + + String(obj.sourceBuffer.buffered.end(i))); + } + } } function Stream(avMerge, source, startTime, avRatio) { |