mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
Add mutex to packet lookup algorithm, fix incorrect next packet retrieval following packet lookup
This commit is contained in:
+5
-2
@@ -13,8 +13,11 @@
|
||||
formats: Mediabunny.ALL_FORMATS,
|
||||
source: new Mediabunny.BlobSource(file),
|
||||
});
|
||||
|
||||
console.log(await input.getTracks());
|
||||
|
||||
const videoTrack = await input.getPrimaryVideoTrack();
|
||||
const sink = new Mediabunny.EncodedPacketSink(videoTrack);
|
||||
|
||||
console.log(await sink.getKeyPacket(Infinity));
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user