WebRTC samples getUserMedia

Display the video stream from getUserMedia() in a video element.

The MediaStream object stream passed to the getUserMedia() callback is in global scope, so you can inspect it from the console.

View source on GitHub