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

[mediacapture-image] Pull Request: Use constrainable pattern for ImageCapture (#124)

From: Miguel Casas-Sanchez via GitHub <sysbot+gh@w3.org>
Date: Sat, 21 Jan 2017 01:11:54 +0000
To: public-media-capture@w3.org
Message-ID: <pull_request.opened-102563245-1484961112-sysbot+gh@w3.org>
miguelao has just submitted a new pull request for 
https://github.com/w3c/mediacapture-image:

== Use constrainable pattern for ImageCapture (#124) ==
First draft of using 
[`ConstrainablePattern`](https://www.w3.org/TR/mediacapture-streams/#constrainable-interface)
 for ImageCapture capabilities and settings management.

This PR:
- Adds an `Extensions` section, where 
`MediaTrackSupportedConstraints`, `MediaTrackCapabilities`, 
`MediaTrackConstraintSet` and `MediaTrackSettings` dictionaries are 
extended to include our set of capabilities/settings. 
- The previous partial dictionaries are also explained in relation to 
a new 'Constrainable properties' section (since these dictionaries 
always refer to the same set of constraints/settings, it's easier to 
define them all together).
- moves `getPhotoCapabilities()`, `setOptions()`, `PhotoCapabilities` 
and `PhotoSettings` to a legacy non-normative section, for the time 
being.

A rendering of the contents of this PR can be found in 
https://rawgit.com/Miguelao/mediacapture-image/pr001_constrainable_pattern/index.html

See https://github.com/w3c/mediacapture-image/pull/146
Received on Saturday, 21 January 2017 01:12:00 UTC

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