Re: [mediacapture-main] Provide a little more transparency into the inner workings of getUserMedia (#764)

> * Does it mean that the user agent is showing the permissions prompt? In that case the application may want to tell the user to find that prompt and deal with that first, which is not always obvious to the user.

I think there is value in exposing whether there will be a prompt or not.
The Permissions API may help since it has Deny/Grant/Prompt values.
For Safari, we are not sure about the 'Deny' case though but Grant/Prompt should be sufficient for you.

> * Does it mean that the device (e.g. camera) is simply slow to open? In that case the application may tell the user be patient.

This is not really covered though opening the device is implementation dependent and can have several meanings.
I am not sure what we could do. I am not sure there is a justification for a new API surfacing getUserMedia decision taken from device opening. In some other issue, we are considering delaying actual opening of the device just before getUserMedia promise resolution callback to limit device recalibration.

There is also the case where getUserMedia processing is delayed until the page has focus.
In general, it seems best for an application to request getUserMedia access based on a user gesture.

-- 
GitHub Notification of comment by youennf
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/764#issuecomment-759330168 using your GitHub account


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

Received on Wednesday, 13 January 2021 09:41:30 UTC