[mediacapture-screen-share] Distinguish cancellations from absent-permissions (#281)

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

== Distinguish cancellations from absent-permissions ==
Video conferencing apps run into a common issue - the app offers the user the ability to share their screen, but when the user tries to avail oneself of the option, it turns out that the browser is lacking the necessary OS permissions.

Worse, the app doesn't have a standard way of distinguishing missing OS permissions from a normal cancellation. In practice, both Chrome and Firefox set the `message` to `"Permission denied by system"`. But that's not specified.

In the short term, I suggest that the `Permission Failure` step in the gDM algorithm be modified to set either a different `name`, `message` or `code` for failures stemming from lacking OS permissions.

In the mid term, I suggest that we think of something that could allow the app to query and see if the browser even has the prerequisite permissions. (Concerns of fingerprinting could be mitigated by gating this on mic/camera permissions.)

In the long term, one might argue that everyone should move to a model like Apple's macOS-based picker. I would object on the grounds that OS admin policies might still block such APIs.

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


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

Received on Thursday, 21 September 2023 07:50:42 UTC