Re: [mediacapture-image] Determine how PTZ permission prompts are supposed to work (#243)

> In both cases, `capabilities.pan` is undefined and `applyConstraints({pan: xxx})` rejects.

I think I saw these checks for applyConstraints in the spec.
Where is it specified in the spec for capabilities?
Will the capabilities change if permission is revoked?
Should the spec say anything about getSettings result sanitisation based on PTZ permission?

> Nope. With `getUserMedia({ video : { pan : true }})`, the website requests a camera PTZ. If there's none, it will fail.
> However with `getUserMedia({ video: { advanced: [{ pan: true }] } })`, the website asks to prefer a PTZ camera during camera selection process.

AIUI, for both queries, getUserMedia will do the same permission request made with: { name: "camera",  panTiltZoom: true } and the result of the request is either denied or granted.
I do not see a way for the browser to grant camera but not PTZ for the second query.
If user persistently denied PTZ, it seems to me that both requests will be rejected.

This does seem to contradict what the primer says:
> If the selected/connected camera does not support PTZ though or user blocks solely the PTZ permission, the UA will either reject the getUserMedia() call if PTZ constraints are required, or fall back to the camera permission if PTZ constraints are defined as advanced constraints.

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


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

Received on Friday, 14 August 2020 11:22:59 UTC