Multiple Worlds WebRTC samples captureStream(): video to video

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