Add live recording example

This commit is contained in:
Vanilagy
2025-06-08 16:50:52 +02:00
parent c7c57e2132
commit f009d0603e
10 changed files with 297 additions and 16 deletions
@@ -101,7 +101,7 @@ const generateVideo = async () => {
codec: videoCodec,
bitrate: QUALITY_HIGH,
});
output.addVideoTrack(canvasSource);
output.addVideoTrack(canvasSource, { frameRate });
// For audio, we use ArrayBufferSource, because we'll be creating an ArrayBuffer with OfflineAudioContext
let audioBufferSource: AudioBufferSource | null = null;