This feature is not Baseline because it does not work in some of the most widely-used browsers.
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 HTMLCanvasElement.captureStream().
This interface inherits the properties of its parent, MediaStreamTrack.
CanvasCaptureMediaStreamTrack.canvas Read only
Returns the HTMLCanvasElement object whose surface is captured in real-time.
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().
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
CanvasCaptureMediaStreamTrack |
51 | 79 | No | 38 | 11 | 51 | No | 41 | 11 | 5.0 | 51 | 11 |
canvas |
51 | 79 | No | 38 | 11 | 51 | No | 41 | 11 | 5.0 | 51 | 11 |
requestFrame |
51 | 79 | No | 38 | 11 | 51 | No | 41 | 11 | 5.0 | 51 | 11 |
HTMLCanvasElement.captureStream() to begin capturing frames from a canvas
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack