getDisplayMedia method
The getDisplayMedia()
method of the MediaDevices interface prompts
the user to select and
grant permission to capture the contents of a display or portion thereof
(such as a window) as a MediaStream.
The resulting stream can then be recorded using the MediaStream Recording API or transmitted as part of a WebRTC session.
See Using the Screen Capture API for more details and an example.
Implementation
external JSPromise<MediaStream> getDisplayMedia(
[DisplayMediaStreamOptions options]);