W3C home > Mailing lists > Public > public-media-capture@w3.org > February 2015

List attention: Meaning of bare values in "advanced" constraints?

From: Harald Alvestrand <harald@alvestrand.no>
Date: Tue, 10 Feb 2015 12:51:05 +0100
Message-ID: <54D9F0A9.9090701@alvestrand.no>
To: "public-media-capture@w3.org" <public-media-capture@w3.org>
Jan-Ivar raised the following issue in the tracker:

https://github.com/w3c/mediacapture-main/issues/128

The construct under discussion is this:

  var  constraints=
   {
     width:  {min:  640,  ideal:  1280},
     height:  {min:  480,  ideal:  720},
     advanced:  [{width:  1920,  height:  1280},
                {aspectRatio:  1.3333333333}]
   };


The question is: are the bare values in "advanced" intended as "exact" 
or "ideal"?

If "ideal", the algorithm needs to specify how to deal with multiple 
"ideal" values for the same list of constraints - which one applies?

If "exact" (which was clearly intended by the example originally), the 
algorithm needs to specify that bare values are exact in one context and 
ideal in the other. Dom has a pull request doing this here, with some 
discussion:

https://github.com/w3c/mediacapture-main/pull/132

Before we fixate on exact text, it seems good to verify what the WG wants.
Are we happy to see bare values mean "ideal" in top level and "exact" in 
"advanced"?

Harald
Received on Tuesday, 10 February 2015 11:51:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 10 February 2015 11:51:37 UTC