Skip to content
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

Once you implement a MediaTrackSupportedConstraints member, you support it #209

Merged
merged 1 commit into from Aug 10, 2015

Conversation

jan-ivar
Copy link
Member

@jan-ivar jan-ivar commented Jul 2, 2015

The spec says:

"A supported constrainable property MUST be represented by a member whose name is the constraint name and whose value is true. Any constrainable properties not supported by the User Agent MUST not be present in the returned dictionary."

In other words, members are always true. This optimizes the WebIDL to match.

I was originally against the breakdown of discrete dictionaries here, because of the code maintenance burden (more places to forget to update for each new constraint implemented), but I like that this at least can be managed entirely in the WebIDL definition file (and WebIDL binding code) without needing to define members and remembering to add manual code somewhere as well to set values to true.

@stefhak
Copy link
Contributor

stefhak commented Jul 9, 2015

As far as I can understand this makes sense.

@stpeter
Copy link
Contributor

stpeter commented Jul 9, 2015

@adam-be Perhaps you could take a look at this one?

@adam-be adam-be merged commit dc0ed01 into w3c:master Aug 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants