Re: [mediacapture-image] Ignore PTZ request if no PTZ camera (#246)

> * PTZ constraints are completely ignored unless the user has at least one PTZ camera attached.
> * Sites cannot get `OverconstrainedError` on ptz constraints unless the user has a ptz camera attached.

I think we want to go further and make it so that PTZ constraints can never trigger an OverconstrainedError, whatever the underlying setup.

It seems the issue is that getUserMedia algorithm is asking permission for a set of devices.
Until PTZ, all devices were interchangeable in terms of permission but PTZ current model is breaking this.

We could change getUserMedia algorithm so that it asks permission for one specific device of a given kind.
If the device happens to be PTZ and PTZ is requested, a specific PTZ prompt would be used.
If the device happens to be PTZ and PTZ is not requested, a regular prompt would be used.
If the device is not PTZ, a regular prompt would be used.

With this algorithm, the downside would be if opening device fails after user granted access.
In that case, the initial prompt might not be in sync with the actually selected device.
I think this case is rare enough though.

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


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

Received on Tuesday, 1 September 2020 07:54:46 UTC