W3C home > Mailing lists > Public > public-webrtc@w3.org > October 2011

Re: CHANGE: Use a JS Object as an argument to getUserMedia

From: Anant Narayanan <anant@mozilla.com>
Date: Fri, 07 Oct 2011 09:26:51 -0700
Message-ID: <4E8F284B.6050207@mozilla.com>
To: "Tommy Widenflycht (ᛏᚮᛘᛘᚤ)" <tommyw@google.com>
CC: Adam Bergkvist <adam.bergkvist@ericsson.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 10/7/2011 12:33 AM, Tommy Widenflycht (ᛏᚮᛘᛘᚤ) wrote:
>     In the current spec, this looks like:
>
>     var stream = navigator.getUserMedia("audio,__video", streamIsReady,
>     streamError);
>     function streamIsReady() { ... }
>     function streamError() { ... }
>
>
> Sorry, but you are wrong about how the current spec looks like;
> getUserMedia is a void function. The MediaStream object is delivered
> only to the streamReady callback if the user granted access and the
> required hardware was found. I like this way a lot.

Apologies, you're right in the current spec it looks like:

navigator.getUserMedia("audio,video", streamIsReady, streamError);
function streamIsReady(stream) { ... }
function streamError() { ... }

But that still doesn't change any of my arguments :)

Thanks,
-Anant
Received on Friday, 7 October 2011 16:27:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:25 UTC