WebRTC samples captureStream(): video to video

This demo requires Firefox 47, or Chrome 53 with Experimental Web Platform features enabled from chrome://flags.

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