W3C home > Mailing lists > Public > public-media-capture@w3.org > March 2017

[mediacapture-image] getCapabilities needs to be async

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Fri, 31 Mar 2017 09:27:35 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-218447040-1490952453-sysbot+gh@w3.org>
beaufortfrancois has just created a new issue for https://github.com/w3c/mediacapture-image:

== getCapabilities needs to be async ==
As `MediaTrackCapabilities` can't be retrieved until a while after opening the device, it would be better if `getCapabilities` returns a promise so that it is always filled:

const capabilities = await track.getCapabilities();

Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/169 using your GitHub account
Received on Friday, 31 March 2017 09:27:40 UTC

This archive was generated by hypermail 2.3.1 : Friday, 31 March 2017 09:27:41 UTC