unknown mandatory constraints and making mandatory harder to use

Off the top of my head:  suppose make applyConstraints and getUserMedia take _only_ a list of optional constraints as an argument  (that makes them easier to use).  Then we add a queueMandatoryConstraint call, which queues up a single mandatory constraint to be applied the next time applyConstraints or gUM is called.  This call could return an error if the UA doesn't recognize/support the constraint (note: this error tells you only about the browser, not about the devices attached to it.)

So this makes the mandatory constraints harder to use (you have to call the queue function multiple times to add multiple mandatory constraints).  And it also gives the app the information about what mandatory constraints are supported.

Of course there will be other ways to do this.


-          Jim

Received on Thursday, 14 November 2013 06:19:49 UTC