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