Re: [mediacapture-image] getCapabilities needs to be async

Note that [`getCapabilities()`](https://w3c.github.io/mediacapture-main/#dom-constrainablepattern-getcapabilities()) is part of the `mediacapture-streams` specification and that here we are limited by it.

That said, probably the idea in `mediacapture-streams` was to collect the capabilities once and only upon [`MediaDevices.getUserMedia()`](https://w3c.github.io/mediacapture-main/#mediadevices-interface-extensions) which is Promise-based:

`Promise<MediaStream>           getUserMedia(optional MediaStreamConstraints constraints);`

but, since in Chromium only the non-Promise based is implemented, we're in this situation.

-- 
GitHub Notification of comment by miguelao
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/169#issuecomment-290761692 using your GitHub account

Received on Friday, 31 March 2017 16:29:31 UTC