W3C home > Mailing lists > Public > public-media-capture@w3.org > November 2013

How Firefox implements optional constraints

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Thu, 14 Nov 2013 16:31:26 -0500
Message-ID: <5285412E.8030608@mozilla.com>
To: "public-media-capture@w3.org" <public-media-capture@w3.org>

   // Then apply optional constraints.
   // These are only effective when there are multiple sources to pick from.
   // Spec as-of-this-writing says to run algorithm on "all possible tracks
   // of media type T that the browser COULD RETURN" (emphasis added).
   // We think users ultimately control which devices we could return, 
so after
   // determining the webpage's preferred list, we add the remaining choices
   // to the tail, reasoning that they would all have passed individually,
   // i.e. if the user had any one of them as their sole device (enabled).
   // This avoids users having to unplug/disable devices should a 
webpage pick
   // the wrong one (UX-fail). Webpage-preferred devices will be listed 

Clarification: The first device in the returned list becomes the default 
choice, so the webapp gets what it wants, as before, unless the user 
*explicitly* overrides the default with another device that the app has 
disclosed it also works with (a want not a need).

Another way to express this is as a fairness problem in the reductive 
optional algorithm: the fewer devices users disclose, the more choices 
they get. We should remove impediments to users disclosing all their 
devices to the browser.

I'd like to propose that this behavior be made explicit in the spec, 
rather than left to be inferred by implementations.

.: Jan-Ivar :.
Received on Thursday, 14 November 2013 21:31:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:24:43 UTC