Fix incorrect API usage in docs

This commit is contained in:
Vanilagy
2025-06-27 19:06:17 +02:00
parent 846fa0b183
commit 0ff0729fec
10 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -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);