Re: [w3c/permissions] Add CameraDevicePermissionDescriptor for 'camera' permission (#204)

Thanks @eehakkin , LGTM. Just reworded a bit why we are doing this. Let's update the PR description with this -

Our model of thinking has been :
The Pan-Tilt-Zoom permission can only be requested (and only shown in the prompt) if the currently connected/selected camera supports it.

Camera permission without PTZ (obtained using an older version of the user agent, or with another camera) is not implicitly upgraded to Camera permission with PTZ (even if the hardware supports it). The permission has to be re-requested.

In w3ctag/design-reviews#358, TAG wants to make sure that from the web app’s perspective: Pan-Tilt-Zoom needs to be **_explicitly_** requested an extension to video capture permission.

To facilitate the previous requirements we want to add a CameraDevicePermissionDescriptor dictionary so that the _normal_ camera permission can be requested using {name: "camera"} (panTiltZoom is false by default) while the pan/tilt/zoom camera permission can be requested using {name: "camera", panTiltZoom: true}, for example `getUserMedia({video: {panTiltZoom: true}});`

The CameraDevicePermissionDescriptor can then be referenced by media capture specifications.



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/permissions/pull/204#issuecomment-601730755

Received on Friday, 20 March 2020 14:32:01 UTC