Re: [mediacapture-image] Clarify meaning of PTZ constraints presence (#256)

> > ```js
> > navigator.mediaDevices.getUserMedia({video: {tilt: {}}});
> > ```
> > would select a tilt capable camera or fail with OverconstrainedError,
> 
> That is probably what we want to avoid.

Not really. A web site should have an option to choose either way.

> If there is no PTZ camera, we probably want getUserMedia to resort to any other available camera (with a non PTZ prompt).

That could be achieved with hotfixed fitness distance by
```js
navigator.mediaDevices.getUserMedia({video: {advanced: [{tilt: {}}]}});
```
If there are no PTZ cameras, the advanced constraint `{tilt: {}}` were dropped because its fitness distance were positive infinity. As a result the only remaining constraint would be video thus any available camera would do.

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


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

Received on Tuesday, 1 September 2020 10:57:13 UTC