- From: Anant Narayanan <anant@mozilla.com>
- Date: Fri, 07 Oct 2011 09:26:51 -0700
- 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