This demo requires Firefox 47, Chrome 53 with Experimental Web Platform features enabled from chrome://flags.
A stream is captured from the video on the left using the captureStream()
method, and streamed via a
peer connection to the video element on the right.
View the browser console to see logging.
Several variables are in global scope, so you can inspect them from the console: pc1
,
pc2
and stream
.
For more information about RTCPeerConnection, see Getting Started With WebRTC.
View source on GitHub