This example uses the captureStream method to capture the video and audio directly from a video element.
The audio is captured using the Web Audio API and combined with the video stream to create a MediaStream.
Press start if the video does not play automatically: