chore(docs): fix buffer length logging

This commit is contained in:
Luan
2024-09-19 13:16:38 -03:00
parent 29c9cd5b69
commit 8642306f97

View File

@@ -39,7 +39,7 @@ googUmp.parse((part) => {
case PART.MEDIA: {
const headerId = part.data.getUint8(0);
const streamData = part.data.split(1).remainingBuffer;
console.log('[Media]:', `Header ID: ${headerId}`, `length: ${streamData.byteLength}`);
console.log('[Media]:', `Header ID: ${headerId}`, `length: ${streamData.getLength()}`);
break;
}
case PART.MEDIA_END: {