CanvasCaptureMediaStreamTrack

The CanvasCaptureMediaStreamTrack interface represents the video track contained in a MediaStream being generated from a <canvas> following a call to HTMLCanvasElement.captureStream().

Properties

This interface inherits the properties of its parent, MediaStreamTrack.

CanvasCaptureMediaStreamTrack.canvas Read only
Returns the HTMLCanvasElement object whose surface is captured in real-time.

Methods

This interface inherits the methods of its parent, MediaStreamTrack.

CanvasCaptureMediaStreamTrack.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 frameRate of 0 when calling captureStream().

Specifications

Specification Status Comment
Media Capture from DOM Elements
The definition of 'CanvasCaptureMediaStreamTrack' in that specification.
Working Draft Initial definition

Browser compatibility

No compatibility data found. Please contribute data for "api.CanvasCaptureMediaStreamTrack" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Contributors to this page: Sheppy, fscholz, uysalere, Sebastianz, teoli
Last updated by: Sheppy,