Re: [mediacapture-main] What does it mean that the argument to applyConstraints() is optional

@miguelao don't touch applyConstraints in Chrome without talking to @guidou

Agree that making it optional doesn't seem to make sense, but this is a WebIDL issue; if an argument is a dictionary, and the dictionary has no mandatory members, it MUST be marked optional.

Actually applyConstraints({}) makes some sense ("remove all constraints"), and it's WebIDL dogma that applyConstraints({}) and applyConstraints() should mean exactly the same thing.

Closing as resolved.

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/438#issuecomment-288317417 using your GitHub account

Received on Wednesday, 22 March 2017 07:17:16 UTC