W3C home > Mailing lists > Public > public-media-capture@w3.org > March 2017

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

From: Miguel Casas-Sanchez via GitHub <sysbot+gh@w3.org>
Date: Thu, 16 Mar 2017 22:12:13 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-214853587-1489702331-sysbot+gh@w3.org>
miguelao has just created a new issue for https://github.com/w3c/mediacapture-main:

== What does it mean that the argument to applyConstraints() is optional ==
Constrainable Pattern method `applyConstraints()` (defined [here](https://w3c.github.io/mediacapture-main/#media-stream-track-interface-definition) and [here](https://w3c.github.io/mediacapture-main/#interface-definition) (*)) takes an `optional {MediaTrack}Constraints constraints`, but what does it mean to call `applyConstraints()` with no argument? 
Suggest removing the `optional`.


FTR [`Gecko implements it like that`](https://github.com/mozilla/gecko-dev/blob/72823b1e95bed9d3edaff79ebd64c391a33e6d7b/dom/webidl/MediaStreamTrack.webidl#L91) whereas Chrome doesn't have it yet (I'm landing it).



(*) links are broken: I recommend migrating to bikeshed.

Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/438 using your GitHub account
Received on Thursday, 16 March 2017 22:12:19 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 16 March 2017 22:12:19 UTC