WebRTC samples getUserMedia



  

Warning: if you're not using headphones, pressing play will cause feedback.

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

Display the audio stream from getUserMedia() in an audio 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