Back to Samples

WebRTC samples captureStream(): video to video

src/content/capture/video-video/index.html

latest596 B
Original Source

WebRTC samples captureStream(): video to video

This browser does not support the video element.

Press play on the left video to start the demo.

A stream is captured from the video element on the left using its captureStream() method and set as the srcObject of the video element on the right.

The stream variable are in global scope, so you can inspect them from the browser console.

View source on GitHub