var elt = stream.canvas;
HTMLCanvasElement indicating the canvas which is the source of the
frames being captured.
// Find the canvas element to capture var canvasElt = document.getElementsByTagName("canvas"); // Get the stream var stream = canvasElt.captureStream(25); // 25 FPS // Do things to the stream ... // Obtain the canvas associated with the stream var canvas = stream.canvas;
|Media Capture from DOM Elements
The definition of 'CanvasCaptureMediaStreamTrack.canvas' in that specification.
|Working Draft||Initial definition|
BCD tables only load in the browser