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().
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().
The value of cursor comes from the CursorCaptureConstraint enumerated string type, and may have one of the following values:
alwaysThe mouse should always be visible in the video content of the MediaStream, unless the mouse has moved outside the area of the content.
motionThe mouse cursor should always be included in the video if it's moving, and for a short time after it stops moving.
neverThe mouse cursor is never included in the shared video.
| Specification |
|---|
| Screen Capture # dom-mediatracksettings-cursor |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
cursor |
71 | ≤79 | No | No | 58 | No | 71 | 71 | No | 50 | No | 10.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackSettings/cursor