JavaScripture
Contribute via GitHub Feedback

CanvasCaptureMediaStreamTrack : MediaStreamTrack

Instance Properties

canvas : HTMLCanvasElement  

The canvas the stream is captured from.

Example:

Run

Results:

 

Instance Methods

requestFrame() : void

Forces the video to update with the latest contents of the canvas. Use when providing a requestedFrameRate to canvas.captureStream() to update the contents of the video manually.

Example:

Run

Results: