Skip to content

Commit

Permalink
Fix streaming demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanilagy committed Jan 13, 2024
1 parent c6b351a commit 60f338f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demo-streaming/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ const startRecording = async () => {
// Create a WebM muxer with a video track and audio track, if available
muxer = new WebMMuxer.Muxer({
streaming: true,
target: new WebMMuxer.StreamTarget(buffer => sourceBuffer.appendBuffer(buffer)),
target: new WebMMuxer.StreamTarget({
onData: buffer => sourceBuffer.appendBuffer(buffer)
}),
video: videoTrack ? {
codec: 'V_VP9',
width: videoTrackWidth,
Expand Down

0 comments on commit 60f338f

Please sign in to comment.