mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 02:43:48 +02:00
Fix incorrect API usage in docs
This commit is contained in:
@@ -362,7 +362,7 @@ const decoder = new VideoDecoder({
|
||||
decoder.configure(await videoTrack.getDecoderConfig());
|
||||
|
||||
// Let's crank through all packets from timestamp 37s to 50s:
|
||||
let currentPacket = sink.getKeyPacket(37);
|
||||
let currentPacket = await sink.getKeyPacket(37);
|
||||
while (currentPacket && currentPacket.timestamp < 50) {
|
||||
decoder.decode(currentPacket.toEncodedVideoChunk());
|
||||
currentPacket = await sink.getNextPacket(currentPacket);
|
||||
|
||||
Reference in New Issue
Block a user