W3C home > Mailing lists > Public > public-media-capture@w3.org > May 2016

[mediacapture-image] Consider converting attribute PhotoCapabilities into a getCapabilities() method

From: Miguel Casas-Sanchez via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 May 2016 20:50:47 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-156363930-1464036646-sysbot+gh@w3.org>
miguelao has just created a new issue for 
https://github.com/w3c/mediacapture-image:

== Consider converting attribute PhotoCapabilities into a 
getCapabilities() method ==
```ImageCapture``` has a [```readonly attribute PhotoCapabilities 
photoCapabilities;```](http://w3c.github.io/mediacapture-image/#image-capture-api),
 that is defined further on 
([here](http://w3c.github.io/mediacapture-image/#photocapabilities)) 
as:

> The photoCapabilities attribute of the ImageCapture object provides 
the photo-specific settings options and current settings values.

Retrieving and updating such a field is inherently racy with the rest 
of the Web Platform code, so I propose converting this ```attribute```
 into a ```Promise<PhotoCapabilities> getCapabilities(); [Throws]```, 
so basically the user/developer can control when/how often these 
numbers are retrieved, in an asynchronous way.



Please view or discuss this issue at 
https://github.com/w3c/mediacapture-image/issues/22 using your GitHub 
account
Received on Monday, 23 May 2016 20:50:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:36 UTC