web api interface
CanvasCaptureMediaStreamTrack
The CanvasCaptureMediaStreamTrack interface of the Media Capture and Streams API represents the video track contained in a MediaStream being generated from a <canvas> following a call to captureStream().
Instance properties
This interface inherits the properties of its parent, MediaStreamTrack.
canvasRead only- : Returns the
HTMLCanvasElementobject whose surface is captured in real-time.
- : Returns the
Instance methods
This interface inherits the methods of its parent, MediaStreamTrack.
requestFrame()- : Manually forces a frame to be captured and sent to the stream. This lets applications that wish to specify the frame capture times directly do so, if they specified a
frameRateof 0 when callingcaptureStream().
- : Manually forces a frame to be captured and sent to the stream. This lets applications that wish to specify the frame capture times directly do so, if they specified a
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
captureStream()to begin capturing frames from a canvas