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

> If a web site calls `navigator.mediaDevices.getUserMedia({video: {pan: {}}})` and there are no PTZ cameras, the permission request will be `{name: "camera", panTiltZoom: false}`

From my reading of the spec, the request will be  `{name: "camera", panTiltZoom: true}` not  `{name: "camera", panTiltZoom: false}`. I think this is the issue to solve here.

> What if a web site calls navigator.mediaDevices.getUserMedia({video: {pan: {ideal: 0}}}) and there are no PTZ cameras?

The request should probably be `{name: "camera", panTiltZoom: false}`.

> What if a web site calls navigator.mediaDevices.getUserMedia({video: {pan: {exact: 0}}})

If there is no PTZ camera, there will be no permission request as the algorithm will bail out early.
Fur simplicity, the request should probably be `{name: "camera", panTiltZoom: false}`.


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


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

Received on Monday, 31 August 2020 12:47:13 UTC