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

Jan-Ivar, you're parsing it wrong.

Remember - the set is all devices that can be considered.

Text:
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".

The result of retrieval is not called a set; the only thing called a 
set around here is "finalSet".

Agree that it is better formulated as 

Retrieve the permission state for all devices in <finalSet> that are 
not attached to a live MediaStreamTrack in the current browsing 
context. Remove from <finalSet> set any device for which the retrieved
 permission state is "denied".

The point of the paragraph is to fail early when the user has already 
stored a denial for the device in that context; respect the user's 
choice and don't ask again.

I'll make a PR.

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/352#issuecomment-215944870
 using your GitHub account

Received on Saturday, 30 April 2016 07:46:53 UTC