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

Re: Bare constraint values - KISS

From: Peter Thatcher <pthatcher@google.com>
Date: Fri, 11 Jul 2014 16:39:33 -0700
Message-ID: <CAJrXDUHSd8U=ZoGTZY3-sQbK6Gq1EoV68EarPkussumTUx-vhg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: Jan-Ivar Bruaroey <jib@mozilla.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>
Now that I think about it more, I think you're right.  Either of those is
better than any of the options I listed.  I kind of like the idea of
top-level arguments that effect all media types (your second option).

On Fri, Jul 11, 2014 at 4:27 PM, Martin Thomson <martin.thomson@gmail.com>
wrote:

> On 11 July 2014 16:24, Peter Thatcher <pthatcher@google.com> wrote:
> > Any others?  Which do you prefer?
>
> None of the above.  Don't solve problems if you don't have to.
>
> ...
> ​​
> getUserMedia({audio: false, video: false, application: true}, ...)
>
> is OK.
>
> ...getUserMedia({audio: false, video: true, source:
> "application|livecapture"}, ...)
>
> is a little better again.
>
> All my opinion, of course.
>
Received on Friday, 11 July 2014 23:40:40 UTC

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