{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/mediacapture-main/issues/174","labels_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/174/comments","events_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/174/events","html_url":"https://github.com/w3c/mediacapture-main/issues/174","id":81790433,"number":174,"title":"getUserMedia algorithm should be made more synchronous ","user":{"login":"youennf","id":5575980,"avatar_url":"https://avatars.githubusercontent.com/u/5575980?v=3","gravatar_id":"","url":"https://api.github.com/users/youennf","html_url":"https://github.com/youennf","followers_url":"https://api.github.com/users/youennf/followers","following_url":"https://api.github.com/users/youennf/following{/other_user}","gists_url":"https://api.github.com/users/youennf/gists{/gist_id}","starred_url":"https://api.github.com/users/youennf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youennf/subscriptions","organizations_url":"https://api.github.com/users/youennf/orgs","repos_url":"https://api.github.com/users/youennf/repos","events_url":"https://api.github.com/users/youennf/events{/privacy}","received_events_url":"https://api.github.com/users/youennf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/mediacapture-main/labels/List%20discussion%20needed","name":"List discussion needed","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"adam-be","id":1233205,"avatar_url":"https://avatars.githubusercontent.com/u/1233205?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-be","html_url":"https://github.com/adam-be","followers_url":"https://api.github.com/users/adam-be/followers","following_url":"https://api.github.com/users/adam-be/following{/other_user}","gists_url":"https://api.github.com/users/adam-be/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-be/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-be/subscriptions","organizations_url":"https://api.github.com/users/adam-be/orgs","repos_url":"https://api.github.com/users/adam-be/repos","events_url":"https://api.github.com/users/adam-be/events{/privacy}","received_events_url":"https://api.github.com/users/adam-be/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-05-28T06:42:00Z","updated_at":"2015-05-28T20:37:30Z","closed_at":null,"body":"As per http://w3c.github.io/mediacapture-main/archives/20150324/getusermedia.html#dom-mediadevices-getusermedia, step3 of the getUserMedia implementation is done asynchronously.\r\n\r\nBut steps 3.1 to 3.5 could be run synchronously.\r\nIn particular, the implementation should be able to return already rejected promises, since JS callbacks will be called asynchronously anyway.\r\n\r\nStep 3.6 should also be started synchronouly, although actual prompting and user decision will usually happen asynchronously.\r\n\r\nWould it be possible to rewrite the description to take that into account?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/mediacapture-main/issues/comments/106588916","html_url":"https://github.com/w3c/mediacapture-main/issues/174#issuecomment-106588916","issue_url":"https://api.github.com/repos/w3c/mediacapture-main/issues/174","id":106588916,"user":{"login":"jan-ivar","id":3136226,"avatar_url":"https://avatars.githubusercontent.com/u/3136226?v=3","gravatar_id":"","url":"https://api.github.com/users/jan-ivar","html_url":"https://github.com/jan-ivar","followers_url":"https://api.github.com/users/jan-ivar/followers","following_url":"https://api.github.com/users/jan-ivar/following{/other_user}","gists_url":"https://api.github.com/users/jan-ivar/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-ivar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-ivar/subscriptions","organizations_url":"https://api.github.com/users/jan-ivar/orgs","repos_url":"https://api.github.com/users/jan-ivar/repos","events_url":"https://api.github.com/users/jan-ivar/events{/privacy}","received_events_url":"https://api.github.com/users/jan-ivar/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T20:37:30Z","updated_at":"2015-05-28T20:37:30Z","body":"Is it important to optimize failure?\r\n\r\nAs for ruling out implementations, [the spec says](http://w3c.github.io/mediacapture-main/getusermedia.html#conformance):\r\n> Conformance requirements phrased as algorithms or specific steps may be implemented in any manner, so long as the end result is equivalent.\r\n"}}