This commit is contained in:
Vanilagy
2025-11-11 11:05:17 +01:00
2 changed files with 6 additions and 5 deletions
+3 -1
View File
@@ -14,11 +14,13 @@
source: new Mediabunny.BlobSource(file),
});
const videoTrack = await input.getPrimaryVideoTrack();
const videoTrack = await input.getPrimaryAudioTrack();
const sink = new Mediabunny.EncodedPacketSink(videoTrack);
for await (const packet of sink.packets()) {
console.log(packet.timestamp, packet.duration, packet.timestamp + packet.duration);
if (packet.timestamp > 10) break;
}
/*