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: Tue, 4 Oct 2011 10:45:37 -0700
Cc: public-webrtc@w3.org
Message-Id: <5154E0FA-4EE7-4B21-951D-DF25794B4CDD@mozilla.com>
To: Tommy Widenflycht (ᛏᚮᛘᛘᚤ) <tommyw@google.com>
On Oct 4, 2011, at 12:33 AM, Tommy Widenflycht (ᛏᚮᛘᛘᚤ) wrote:
> Whereas I have nothing against changing the configuration string to a JS object, I don't like the conversion from asynchronous result to a synchronous one. Opening a webcam can take many seconds, which means that the JS world is stuck during that interval.

The proposal doesn't suggest that the operation is asynchronous, you do have to attach an event listener or a callback on the MediaStream that is returned. It behaves exactly like XHR in this regard.

Received on Tuesday, 4 October 2011 17:46:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:22 UTC