W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2015

Re: Can getUserMedia() get called on a callback/event ?

From: Martin Thomson <martin.thomson@gmail.com>
Date: Wed, 8 Apr 2015 09:34:05 -0700
Message-ID: <CABkgnnVXPDEFu6qjeBrHd_XNrJP5d-EZMt6OKvYnKXLw8pRXwA@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
Cc: "Cullen Jennings (fluffy)" <fluffy@cisco.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 8 April 2015 at 04:17, Iñaki Baz Castillo <ibc@aliax.net> wrote:
> Really, still I don't understand how the apprtc demo of Google works
> given that it automatically prompts the user for getUserMedia without
> the need for the user to click in any button. Where is the trick? Does
> it work if the JS lib calls gUM even before the DOM is load? but it
> would fail if it waits for DOM "load" event, right? This is a no sense
> IMHO.


It works because the gUM prompt is not conditional on an engagement gesture.
Received on Wednesday, 8 April 2015 16:34:34 UTC

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