--- title: CanvasCaptureMediaStreamTrack slug: Web/API/CanvasCaptureMediaStreamTrack tags: - CanvasCaptureMediaStreamTrack - Experimental - Frame Capture - Interface - Media - Media Capture - NeedsTranslation - Reference - TopicStub - Web translation_of: Web/API/CanvasCaptureMediaStreamTrack ---
The CanvasCaptureMediaStreamTrack
interface represents the video track contained in a {{domxref("MediaStream")}} being generated from a {{HTMLElement("canvas")}} following a call to {{domxref("HTMLCanvasElement.captureStream()")}}.
Part of the Media Capture and Streams API.
This interface inherits the properties of its parent, {{domxref("MediaStreamTrack")}}.
This interface inherits the methods of its parent, {{domxref("MediaStreamTrack")}}.
frameRate
of 0 when calling {{domxref("HTMLCanvasElement.captureStream", "captureStream()")}}.Specification | Status | Comment |
---|---|---|
{{SpecName('Media Capture DOM Elements', '#the-canvascapturemediastreamtrack', 'CanvasCaptureMediaStreamTrack')}} | {{Spec2('Media Capture DOM Elements')}} | Initial definition |
{{Compat("api.CanvasCaptureMediaStreamTrack")}}