Re: [mediacapture-image] Document OverConstrainedError for PTZ in explainer (#229)

Restricting pan, tilt, and zoom constraints in `getUserMedia` to be "ideal" would work.
In this case, the PTZ capability request would be optional, not mandatory.

```js
// [NEW] Does not fail with OverConstrainedError if no PTZ camera. 
await navigator.mediaDevices.getUserMedia({ video: { pan: true } });

// [NEW] Both would be equivalent. 
await navigator.mediaDevices.getUserMedia({ video: { pan: true } });
await navigator.mediaDevices.getUserMedia({ video: { advanced: [{ pan: true }] } });
```

It seems like a bigger change than PTZ according to https://github.com/w3c/mediacapture-main/issues/697


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

Received on Monday, 29 June 2020 10:34:30 UTC