requestFrame method
void
requestFrame()
The requestFrame()
method of the CanvasCaptureMediaStreamTrack
interface requests that a frame be captured from the canvas and sent to
the stream.
Applications that need to carefully control
the timing of rendering and frame capture can use requestFrame()
to
directly specify when it's time to capture a frame.
To prevent automatic capture of frames, so that frames are only captured
when
requestFrame()
is called, specify a value of 0 for the
HTMLCanvasElement.captureStream method when creating
the stream.
Implementation
external void requestFrame();