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

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