mirror of
https://github.com/LuanRT/googlevideo.git
synced 2026-07-04 12:47:01 +00:00
chore(docs): fix buffer length logging
This commit is contained in:
@@ -39,7 +39,7 @@ googUmp.parse((part) => {
|
|||||||
case PART.MEDIA: {
|
case PART.MEDIA: {
|
||||||
const headerId = part.data.getUint8(0);
|
const headerId = part.data.getUint8(0);
|
||||||
const streamData = part.data.split(1).remainingBuffer;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case PART.MEDIA_END: {
|
case PART.MEDIA_END: {
|
||||||
|
|||||||
Reference in New Issue
Block a user