Re: [mediacapture-image] The (bool or ConstrainDouble) case for pan/tilt/zoom is unclear (#225)

I think it is harmful to mix "request permission" and "apply setting" in a single syntax.

Consider for instance:

getUserMedia({video: {pan: true, zoom: 0}})

Is the user asking for tilt permission or not?
As far as I have been able to understand, the concept of PTZ permission is that you either have all of them or none of them - which means that {pan: true} also affects tilt and zoom - which is, to my mind, less than elegant.

Of the alternatives proposed so far, I think

getUserMedia({video: {ptzAbility: true})

is the least ugly solution.


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

Received on Tuesday, 5 May 2020 14:57:59 UTC