W3C home > Mailing lists > Public > public-media-capture@w3.org > April 2016

[mediacapture-main] With single camera, calling getUserMedia twice causes PermissionFailure.

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Fri, 29 Apr 2016 18:44:04 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-151942580-1461955443-sysbot+gh@w3.org>
jan-ivar has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== With single camera, calling getUserMedia twice causes 
PermissionFailure. ==
A 
[commit](https://github.com/w3c/mediacapture-main/commit/049fd00f87f9ed39a642826fb3ae521cf0e49bb2)
 from a little over a month ago broke the 
[`getUserMedia`](http://w3c.github.io/mediacapture-main/getusermedia.html#dom-mediadevices-getusermedia)
 algorithm here (step 6.3):

> [Retrieve the permission 
state](http://w3c.github.io/mediacapture-main/getusermedia.html#dfn-retrieve-the-permission-state)
 for all candidate devices that are not attached to a `live` 
MediaStreamTrack in the current browsing context. Remove from the set 
any device for which the permission state is "denied".
> 
> If the set is now empty, jump to the step labeled *Permission 
Failure* below.

For users with only one camera, the `set` will always be empty here if
 a page already holds an active track when it calls `getUserMedia`, 
resulting in permission failure.

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/352 using your GitHub 
account
Received on Friday, 29 April 2016 18:44:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:36 UTC