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

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

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Wed, 8 Apr 2015 13:17:38 +0200
Message-ID: <CALiegfneTp_+5Nnw5eXvO17zJLVU+hQMpL1_DvzMULRd2mMa7w@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
Cc: "Cullen Jennings (fluffy)" <fluffy@cisco.com>, "public-webrtc@w3.org" <public-webrtc@w3.org>
2015-04-06 22:12 GMT+02:00 Martin Thomson <martin.thomson@gmail.com>:
> As I understand "engagement gestures", a popup would be blocked.  But
> it's only the "popup" (i.e., the gUM prompt) that would be blocked in
> this example.  With a persistent permission, that prompt doesn't get
> triggered, so the site should be able to get media immediately.

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

Iñaki Baz Castillo
Received on Wednesday, 8 April 2015 11:18:26 UTC

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