[mediacapture-screen-share] Should pending getDisplayMedia() calls reject on sleep and/or screen-lock? (#287)

eladalon1983 has just created a new issue for https://github.com/w3c/mediacapture-screen-share:

== Should pending getDisplayMedia() calls reject on sleep and/or screen-lock? ==
Assume:
```js
const promise = navigator.mediaDevices.getDisplayMedia();
```
Should we perhaps reject the promise if either of the following happens?
1. Screen locked.
2. Device put to sleep.

It seems counter-productive to allow a user gesture to essentially still have an effect several hours later. Imagine especially the following scenario: The user delivers a gesture, waits 1 second, then closes the lid and runs off somewhere. Somewhere in between the gesture and the device going to sleep, the app called gDM and the UA displayed the prompt. Is it really reasonable for the prompt to still be up there next morning?

Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/287 using your GitHub account


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

Received on Wednesday, 22 November 2023 13:10:18 UTC