The CanvasCaptureMediaStreamTrack
interface represents the video track contained in a MediaStream
being generated from a <canvas>
following a call to HTMLCanvasElement.captureStream()
.
Part of the Media Capture and Streams API.
This interface inherits the properties of its parent, MediaStreamTrack
.
CanvasCaptureMediaStreamTrack.canvas
Read only
HTMLCanvasElement
object whose surface is captured in real-time.This interface inherits the methods of its parent, MediaStreamTrack
.
CanvasCaptureMediaStreamTrack.requestFrame()
frameRate
of 0 when calling captureStream()
.Specification | Status | Comment |
---|---|---|
Media Capture from DOM Elements The definition of 'CanvasCaptureMediaStreamTrack' in that specification. | Working Draft | Initial definition |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 51 | ? | 41
|
No | No | No |
canvas
|
No | ? | 41
|
No | No | No |
requestFrame
|
? | ? | 41
|
No | ? | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | No | No | ? | 41
|
No | No | No |
canvas
|
No | No | ? | 41
|
No | No | No |
requestFrame
|
? | ? | ? | ? | ? | ? | ? |
HTMLCanvasElement.captureStream()
to begin capturing frames from a canvas
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStreamTrack