W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2020

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

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Mon, 29 Jun 2020 10:34:28 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-651039463-1593426867-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:51 UTC