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.
stream variable are in global scope, so you can inspect them from the browser console.