W3C home > Mailing lists > Public > public-media-capture@w3.org > May 2012

Re: Syntax options for constraints structure

From: Bruce Lawson <bruce@brucelawson.co.uk>
Date: Fri, 11 May 2012 18:20:41 +0100
To: public-media-capture@w3.org
Message-ID: <op.wd5mgrnku355il@bruce-pc>
On Fri, 11 May 2012 18:11:04 +0100, Anant Narayanan <anant@mozilla.com>  
wrote:


> Correction, the intent of this syntax was also to drop the "video"  
> prefix on each constraint since the top-level element is video:
>
> navigator.getUserMedia({
>     video: {
>       mandatory: {
>         minHeight:600,
>         maxBandwidth:500
>       },
>       optional: [
>         {
>           maxAspectratio: 1.333333333333,
>           minTimebetweenrefframes: 20,
>           minFramerate: 30,
>           enumAutowhitebalance: "on"
>         },
>         {
>           minTimebetweenrefframes: 40,
>           minFramerate: 10
>         },
>      ]
>    }
> });

Is there anywhere that documents the purpose of this plethora of extra  
arguments? I very much enjoyed the simplicity of the gUM API and am unsure  
about what all this extra complexity is for.

Bruce Lawson
(work for Opera, but asking for me)
Received on Friday, 11 May 2012 17:21:24 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:14:59 GMT