CanvasCaptureMediaStreamTrack - Web APIs 编辑
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.
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 callingcaptureStream()
.
Specifications
Specification | Status | Comment |
---|---|---|
Media Capture from DOM Elements The definition of 'CanvasCaptureMediaStreamTrack' in that specification. | Working Draft | Initial definition |
Browser compatibility
BCD tables only load in the browser
See also
HTMLCanvasElement.captureStream()
to begin capturing frames from a canvas
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论