CanvasCaptureMediaStreamTrack
The CanvasCaptureMediaStreamTrack
interface represents the video track contained in a MediaStream
(en-US) being generated from a <canvas>
following a call to HTMLCanvasElement.captureStream()
(en-US).
Part of the Media Capture and Streams API.
Properties
This interface inherits the properties of its parent, MediaStreamTrack
.
CanvasCaptureMediaStreamTrack.canvas
읽기 전용-
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 callingcaptureStream()
(en-US).
명세서
Specification |
---|
Media Capture from DOM Elements # the-canvascapturemediastreamtrack |
브라우저 호환성
BCD tables only load in the browser
See also
HTMLCanvasElement.captureStream()
(en-US) to begin capturing frames from a canvas