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

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