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.
>