W3C home > Mailing lists > Public > public-media-capture@w3.org > July 2014

Re: Bare constraint values - KISS

From: Stefan Håkansson LK <stefan.lk.hakansson@ericsson.com>
Date: Mon, 14 Jul 2014 06:22:29 +0000
To: Martin Thomson <martin.thomson@gmail.com>
CC: Peter Thatcher <pthatcher@google.com>, Jan-Ivar Bruaroey <jib@mozilla.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>
Message-ID: <1447FA0C20ED5147A1AA0EF02890A64B1D02F01A@ESESSMB209.ericsson.se>
On 14/07/14 06:01, Martin Thomson wrote:
> On 12 July 2014 07:36, Stefan Håkansson LK
> <stefan.lk.hakansson@ericsson.com> wrote:
>>> ...getUserMedia({audio: false, video: true, source:
>>> "application|livecapture"}, ...)
>>
>> Could someone expand a bit on this one? What would it look like if you
>> wanted a camera (not application) - with and without constraints (just a
>> simple example with e.g. frameRate) supplied? Can constraints be
>> supplied if the source is "application"? How? Etc.
>
>
> getUserMedia({video: true})
>
> getUserMedia({video: {frameRate: 29.97}})
>
> getUserMedia({video: true, source: "capture"})
>    // same as first, explicit source instead of relying on the default

..and would become

getUserMedia({video: {frameRate: 29.97}, source: "capture"})

with constraints applied
>
> getUserMedia({video: { width: 640 }, source: "application"})
>    // screen-cap, supports all constraints

Thanks for supplying the examples. I like this model.

Stefan



Received on Monday, 14 July 2014 06:22:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:28 UTC