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

On 1/9/15 11:19 AM, Iñaki Baz Castillo wrote:
> To be clear, the following "fails" in Chrome:
>
> --------------
> setTimeout(function() {
>      getUserMedia(
>          {video:true},
>          function() {},
>          function(error) { console.error(error); }
>      )
> }, 2000);
> --------------
>
> It "fails" since the "getUserMedia" prompt is not displayed until the
> user moves to another tab or application and comes back to this one.

Are you sure? Works for me in Chrome (39 and Canary) 
http://jsfiddle.net/jib1/k3u0zjzx

Works from localhost too (I know Chrome doesn't allow gUM from file:// 
urls...)

.: Jan-Ivar :.

Received on Friday, 9 January 2015 20:34:58 UTC