-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be consistent with error handling #68
Comments
The "simply ignored" would be from section 5:
|
Also contradiction: clearly not all constraints are supported if some of them throw an exception. |
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. |
Is this covered by #73 ? |
5.2 says to throw an InvalidAccessError if MediaTrackConstraints are used, 5.4 says deviceId can make it overconstrained which I think implies an OverconstrainedError is thrown, and I think other parts of the spec may have implied that unsupported constraints are simply ignored (no exception thrown), but I'm not sure about that last part.
The text was updated successfully, but these errors were encountered: