av-merge: print sourceBuffer.buffered in printDebuggingInfo

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-08-29 11:10:41 -07:00 committed by Jesús
parent 92bdbf072e
commit c1dbc6c411
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -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) {