WebRTC samples getUserMedia ⇒ canvas

Draw a frame from the video onto the canvas element using the drawImage() method.

The variables canvas, video and stream are in global scope, so you can inspect them from the console.

View source on GitHub