diff options
author | James Taylor <user234683@users.noreply.github.com> | 2021-08-28 18:11:31 -0700 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-29 22:54:27 -0500 |
commit | 77fffee34f3a6d7965d0fe96bec593d4a9639f28 (patch) | |
tree | 29ecfb2863a0ec25be96e8f84d4496113819e92c /youtube/static/js/av-merge.js | |
parent | aacbf07ad726a4ef9bd79da33e4675dcf31bbad8 (diff) | |
download | yt-local-77fffee34f3a6d7965d0fe96bec593d4a9639f28.tar.lz yt-local-77fffee34f3a6d7965d0fe96bec593d4a9639f28.tar.xz yt-local-77fffee34f3a6d7965d0fe96bec593d4a9639f28.zip |
av-merge: Add function to dump debugging info
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/static/js/av-merge.js')
-rw-r--r-- | youtube/static/js/av-merge.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js index 93664b9..f820927 100644 --- a/youtube/static/js/av-merge.js +++ b/youtube/static/js/av-merge.js @@ -114,6 +114,17 @@ AVMerge.prototype.videoEndOfStream = function() { } this.videoEndOfStreamCalled = true; } +AVMerge.prototype.printDebuggingInfo = function() { + reportDebug('videoSource:', this.videoSource); + reportDebug('audioSource:', this.videoSource); + reportDebug('video sidx:', this.videoStream.sidx); + reportDebug('audio sidx:', this.audioStream.sidx); + reportDebug('video duration:', this.video.duration); + reportDebug('video current time:', this.video.currentTime); + reportDebug('mediaSource.readyState:', this.mediaSource.readyState); + reportDebug('videoEndOfStreamCalled', this.videoEndOfStreamCalled); + reportDebug('audioEndOfStreamCalled', this.audioEndOfStreamCalled); +} function Stream(avMerge, source, startTime, avRatio) { this.avMerge = avMerge; @@ -410,7 +421,7 @@ function reportError(...args){ console.error(...args); } function reportDebug(...args){ - console.log(...args); + console.debug(...args); } function byteArrayToIntegerLittleEndian(unsignedByteArray){ |