Re: [mediacapture-image] [PTZ] Should `applyConstraints` request permission? (#223)

> with the caveat that the constraints won't actually be available to the developer before so they would have to use the {pan: true, tilt: true, zoom: true} syntax first (since they can't provide meaningful constraints in the first place).

Good point. Yes you'd have the same limitation there as with calling `getUserMedia` again. E.g.
```js
let pan = track.getSettings().pan; // undefined
if (pan === undefined) {
  await track.applyConstraints({pan: true}); // permission elevation prompt
  pan = track.getSettings().pan; // actual value revealed (if supported)
}
```
This would be important to not reveal more fingerprinting info than permitted.

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

Received on Tuesday, 19 May 2020 15:17:52 UTC