- From: Ilkka Oksanen via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 12 Nov 2010 20:49:04 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/camera
In directory hutz:/tmp/cvs-serv2117
Modified Files:
Overview-API.html
Log Message:
Renamings
Index: Overview-API.html
===================================================================
RCS file: /sources/public/2009/dap/camera/Overview-API.html,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- Overview-API.html 12 Nov 2010 13:11:43 -0000 1.37
+++ Overview-API.html 12 Nov 2010 20:49:02 -0000 1.38
@@ -56,16 +56,16 @@
<pre class="example sh_javascript_dom">
-allformats = navigator.device.capture.supportedImageFormats;
+allmodes = navigator.device.capture.supportedImageModes;
var width = 0;
-var selectedformat;
+var selectedmode;
-// Select format which has the highest horizontal resolution
-for each (var format in allformats) {
- if (allformats.width > width) {
- width = format.width;
- selectedformat = format;
+// Select mode which has the highest horizontal resolution
+for each (var mode in allmodes) {
+ if (mode.width > width) {
+ width = mode.width;
+ selectedmode = mode;
}
}
@@ -90,7 +90,7 @@
}
}
-navigator.device.capture.captureImage(success, error, { limit: 1, format: selectedformat });
+navigator.device.capture.captureImage(success, error, { limit: 1, mode: selectedmode });
</pre>
</div>
@@ -175,19 +175,19 @@
<dl title="[Supplemental, NoInterfaceObject] interface Capture"
class="idl"><dt>readonly attribute ConfigurationData[]
- supportedImageFormats</dt>
+ supportedImageModes</dt>
<dd>An array of ConfigurationData objects which contains combinations of image sizes
and formats supported by the hosting device camera.</dd>
<dt>readonly attribute ConfigurationData[]
- supportedVideoFormats </dt>
+ supportedVideoModes </dt>
<dd>An array of ConfigurationData objects which contains combinations of video
resolutions and formats supported by the hosting device
camera.</dd>
<dt>readonly attribute ConfigurationData[]
- supportedAudioFormats</dt>
+ supportedAudioModes</dt>
<dd>An array of ConfigurationData objects which contains combinations of audio
formats supported by the hosting device microphone.</dd>
@@ -425,8 +425,8 @@
<dl title="[NoInterfaceObject] interface CaptureImageOptions" class="idl">
<dt>attribute unsigned long limit</dt>
<dd>Upper limit of images user can take. Value MUST be equal or greater than one.</dd>
- <dt>attribute ConfigurationData format</dt>
- <dd>The selected image format. Must match with one of the elements in <a href="#widl-Capture-supportedImageFormats"><code>supportedImageFormats</code></a> array.</dd>
+ <dt>attribute ConfigurationData mode</dt>
+ <dd>The selected image mode. Must match with one of the elements in <a href="#widl-Capture-supportedImageModes"><code>supportedImageModes</code></a> array.</dd>
</dl>
@@ -439,8 +439,8 @@
<dd>Upper limit of videos user can record. Value MUST be equal or greater than one</dd>
<dt>attribute float duration</dt>
<dd>Maximum duration of a single video clip in seconds.</dd>
- <dt>attribute ConfigurationData format</dt>
- <dd>The selected video format. Must match with one of the elements in <a href="#widl-Capture-supportedVideoFormats"><code>supportedVideoFormats</code></a> array.</dd>
+ <dt>attribute ConfigurationData mode</dt>
+ <dd>The selected video mode. Must match with one of the elements in <a href="#widl-Capture-supportedVideoModes"><code>supportedVideoModes</code></a> array.</dd>
</dl>
</section>
@@ -451,8 +451,8 @@
<dd>Upper limit of sound clips user can record. Value MUST be equal or greater than one</dd>
<dt>attribute float duration</dt>
<dd>Maximum duration of a single sound clip in seconds.</dd>
- <dt>attribute ConfigurationData format</dt>
- <dd>The selected audio format. Must match with one of the elements in <a href="#widl-Capture-supportedAudioFormats"><code>supportedAudioFormats</code></a> array.</dd>
+ <dt>attribute ConfigurationData mode</dt>
+ <dd>The selected audio mode. Must match with one of the elements in <a href="#widl-Capture-supportedAudioModes"><code>supportedAudioModes</code></a> array.</dd>
</dl>
</section>
Received on Friday, 12 November 2010 20:49:06 UTC