It will not cause calls to fail that would have succeeded, or vice versa, but may cause the settings chosen to be surprising.
No app that runs on chrome uses them, since they were not passed before. Some apps that run on both Firefox and chrome and do not use adapter.js might use them. No idea how many these are.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Yes, the scope is what's guarded by [RuntimeEnabled=MediaConstraints] (unless I made a mistake).Yes, crbug 524424 troubles me too, and haraken has promised to try to address it this quarter, but it's apparently not a trivial change to the WebIDL compiler. It's part of the reason why I installed a special flag for [ideal] (the rest of the reason is that I haven't implemented the "ideal" algorithm yet).Yes, the result of getUserMedia({video: {width: 400}}) will be TypeError (just tried it). I think this is slightly better than silently ignoring the attempt to set the constraint when this form is not supported.BTW - getSuppotedConstraints() is synchronous. In fact, it's the simplest function I've ever implemented in Blink - it's all defined in the IDL file except an empty C++ function.
Resurrecting the Intent to Ship thread:
We now have working parsing of naked constraint values, so that we don't get TypeError when people use this form.(We ignore the values in some cases, but that's actually legal according to spec, and we can fix quite a few cases easily.)We also have getConstraints (retrieving the current constraints values) working, and the getSettings call exists (but getting the right values is work in progress - this may warrant its own flag).
The current situation is that Chrome is dominant in the marketplace for WebRTC browsers. So people implement our old non-standard constraint syntax, and as an afterthought they add conditional support for Firefox' standards compliant syntax.The graph for the name/value form (what we currently have) is here:And the standards-compliant one is here:(obviously flat, since it hasn't been released yet)This is a situation we want to get away from, and the first step is obviously to give the users the option to use the standard.There is a W3C test suite that exercises constraints to some degree under "mediacapture-streams"; we currently pass 9 and fail 6 - one of these failures concerns constraints; I'll take a closer look at that.
My "feel" is that we'll learn of breakages when people try to convert to the common syntax. I think we'll be interoperable "apart from bugs".
lgtm3