Back to Samples

WebRTC samples getUserMedia

src/content/getusermedia/gum/index.html

latest522 B
Original Source

WebRTC samplesgetUserMedia

Open camera

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

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