Re: [mediacapture-screen-share] capture screenshot of DOM (#145)

Note, `navigator.clipboard.read()` at Chromium requires both `document` to be focused and prompts for permission to read clipboard, thus prompts cannot be avoided (have not found a flag to disable that; Chromium has an entire project just dealing with permissions; e.g.; Native File Filesystem, etc.). `getDisplayMedia()` prompt is not intrusive, and we probably want to make sure the process is transparent yet notifies user, so applications cannot be set afoot at large and take screenshots of documents continuously without notice. The important item here is calling waiting until prompts fade out and `stop()` on the `MediaStreamTrack`, which is not really observable via `onended`, though can be observable by utilizing `enabled` and setting that value to `false` before `stop()`.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/145#issuecomment-702155730 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 1 October 2020 13:59:43 UTC