Back to Samples

WebRTC samples getUserMedia ⇒ canvas

src/content/getusermedia/canvas/index.html

latest449 B
Original Source

WebRTC samples getUserMedia ⇒ canvas

Take snapshot

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