Skip to content

Commit

Permalink
Fix streaming demo (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanilagy committed Sep 27, 2024
1 parent 9aca654 commit 448fc0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo-streaming/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ const startRecording = async () => {
muxer = new WebMMuxer.Muxer({
streaming: true,
target: new WebMMuxer.StreamTarget({
onData: buffer => sourceBuffer.appendBuffer(buffer)
// Because 'streaming' is true, the buffers are contiguous and the position argument can be ignored
onData: (buffer, _) => sourceBuffer.appendBuffer(buffer)
}),
video: videoTrack ? {
codec: 'V_VP9',
Expand Down

0 comments on commit 448fc0b

Please sign in to comment.