Screen capture
Limited availability
The navigator.mediaDevices.getDisplayMedia()
method asks the user to choose a screen or portion of a screen (such as a window) to capture as a media stream.
To learn more, see
CaptureController,
CaptureController: CaptureController() constructor,
CaptureController: setFocusBehavior() method,
Screen Capture API,
MediaTrackConstraints: displaySurface property,
MediaTrackConstraints: logicalSurface property,
MediaTrackConstraints: suppressLocalAudioPlayback property,
Permissions-Policy: display-capture at MDN.
Compatibility
- Chrome 72 Released on 2019-01-29
- Chrome Android ❌ Search for bugs Search for Chromestatus entry
- Edge 79 Released on 2020-01-15
- Firefox 33 Released on 2014-10-14
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari 13 Released on 2019-09-19
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- Screen Capture, from Web Real-Time Communications Working Group (W3C).