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

Re: [mediacapture-main] OverconstrainedError extends DOMException + algo fixes (#746)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Nov 2020 15:15:44 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-724076580-1604934943-sysbot+gh@w3.org>
> It seems `MediaStreamError` is now essentially just `DOMException`. Can it be removed here?

@saschanaz Can we return a base class interface in a WebIDL JS callback and have the following still work?
```js
navigator.mediaDevices.getUserMedia({video: {width: {min: 9999}}}, () => {}, e => {
  console.log(e.constraint); // width
});  
```
I've been working too much with dictionaries where this would be a problem.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/pull/746#issuecomment-724076580 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 9 November 2020 15:15:46 UTC

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