MediaTrackSettings.cursor - Web APIs 编辑
The MediaTrackSettings
dictionary's cursor
property indicates whether or not the cursor should be captured as part of the video track included in the MediaStream
returned by getDisplayMedia()
.
Syntax
cursorSetting = mediaTrackSettings.cursor;
Value
The value of cursor
comes from the CursorCaptureConstraint
enumerated string type, and may have one of the following values:
always
- The mouse should always be visible in the video content of the {domxref("MediaStream"), unless the mouse has moved outside the area of the content.
motion
- The mouse cursor should always be included in the video if it's moving, and for a short time after it stops moving.
never
- The mouse cursor is never included in the shared video.
Specifications
Specification | Status | Comment |
---|---|---|
Screen Capture The definition of 'MediaTrackSettings.cursor' in that specification. | Working Draft | Initial definition |
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论