W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > August 2018

Re: [mediacapture-screen-share] Be consistent with how to handle errors

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Thu, 30 Aug 2018 13:28:42 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-417319295-1535635721-sysbot+gh@w3.org>
I'm trying to be consistent with getUserMedia().

With regards to InvalidAccessError at MediaTrackConstraints, this is throwing an exception because constraints were passed in that weren't applicable. I'm trying to figure out if getUserMedia() in this case would fail to satisfy the constraint because it was not applicable and hence throw an OverconstrainedError (if "exact" was used, but not if "ideal" was used?) or if it would silently ignore the constraint (as if a constraint unrecognized by WebIDL was passed in) and not throw an exception.
I filed https://github.com/w3c/mediacapture-main/issues/533.

-- 
GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/68#issuecomment-417319295 using your GitHub account
Received on Thursday, 30 August 2018 13:28:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:34 UTC