[mediacapture-main] getUserMedia algorithm should be made more synchronous

youennf has just created a new issue for 
https://github.com/w3c/mediacapture-main:

== getUserMedia algorithm should be made more synchronous  ==
As per 
http://w3c.github.io/mediacapture-main/archives/20150324/getusermedia.html#dom-mediadevices-getusermedia,
 step3 of the getUserMedia implementation is done asynchronously.

But steps 3.1 to 3.5 could be run synchronously.
In particular, the implementation should be able to return already 
rejected promises, since JS callbacks will be called asynchronously 
anyway.

Step 3.6 should also be started synchronouly, although actual 
prompting and user decision will usually happen asynchronously.

Would it be possible to rewrite the description to take that into 
account?



See https://github.com/w3c/mediacapture-main/issues/174

Received on Thursday, 28 May 2015 06:42:02 UTC