diff options
Diffstat (limited to 'files/es/web/api/cameracapabilities')
6 files changed, 263 insertions, 0 deletions
diff --git a/files/es/web/api/cameracapabilities/effects/index.html b/files/es/web/api/cameracapabilities/effects/index.html new file mode 100644 index 0000000000..1204fb0c34 --- /dev/null +++ b/files/es/web/api/cameracapabilities/effects/index.html @@ -0,0 +1,37 @@ +--- +title: CameraCapabilities.effects +slug: Web/API/CameraCapabilities/effects +translation_of: Archive/B2G_OS/API/CameraCapabilities/effects +--- +<p>{{ ApiRef() }}</p> +<p>{{ non-standard_header() }}</p> +<p>{{ B2GOnlyHeader2('certified') }}</p> +<h2 id="Resumen">Resumen</h2> +<p>El valor de la propiedad <code>effects</code> en un <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> que identifica los efectos (tales como <code>normal</code>, <code>sepia</code>, <code>mono</code>, etc.) que soporta la camara.</p> +<h2 id="Sintaxis">Sintaxis</h2> +<pre>var effects = instanceOfCameraControl.capabilities.effects</pre> +<h2 id="Valor">Valor</h2> +<p>Devuelve un <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> de cadenas.</p> +<h2 id="Ejemplo">Ejemplo</h2> +<pre class="brush: js">var options = { + camera: navigator.mozCameras.getListOfCameras()[0] +}; + +function onSuccess(camera) { + var effects = camera.capabilities.effects; + + effects.forEach(function (value) { + console.log(value) + }); +}; + +navigator.mozCameras.getCamera(options, onSuccess) +</pre> +<h2 id="Specification" name="Specification">Especifiacion</h2> +<p>No forma parte de ninguna especifiacion; en cualquier caso, esta API deberia ser eliminada cuando la <a class="external" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" rel="external" title="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">WebRTC Capture and Stream API</a> haya sido implementada.</p> +<h2 id="Ver_tambien">Ver tambien</h2> +<ul> + <li>{{domxref("CameraCapabilities")}}</li> + <li>{{domxref("CameraControl")}}</li> + <li>{{domxref("CameraManager")}}</li> +</ul> diff --git a/files/es/web/api/cameracapabilities/fileformats/index.html b/files/es/web/api/cameracapabilities/fileformats/index.html new file mode 100644 index 0000000000..5193200866 --- /dev/null +++ b/files/es/web/api/cameracapabilities/fileformats/index.html @@ -0,0 +1,37 @@ +--- +title: CameraCapabilities.fileFormats +slug: Web/API/CameraCapabilities/fileFormats +translation_of: Archive/B2G_OS/API/CameraCapabilities/fileFormats +--- +<p>{{ ApiRef() }}</p> +<p>{{ non-standard_header() }}</p> +<p>{{ B2GOnlyHeader2('certified') }}</p> +<h2 id="Summary">Summary</h2> +<p>La propiedad <code>fileFormats</code> es un <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> que identifica los formatos de archivo que soporta la camara, tales como <code>jpeg</code>, <code>rgb565</code>, etc.</p> +<h2 id="Sintaxis">Sintaxis</h2> +<pre>var formats = instanceOfCameraControl.capabilities.fileFormats</pre> +<h2 id="Valor">Valor</h2> +<p>Devuelve un <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> de cadenas.</p> +<h2 id="Ejemplo">Ejemplo</h2> +<pre class="brush: js">var options = { + camera: navigator.mozCameras.getListOfCameras()[0] +}; + +function onSuccess(camera) { + var formats = camera.capabilities.fileFormats; + + formats.forEach(function (value) { + console.log(value) + }); +}; + +navigator.mozCameras.getCamera(options, onSuccess) +</pre> +<h2 id="Specification" name="Specification">Especificacion</h2> +<p>No es parte de ninguna especificacion; en cualquier caso, esta API deberia ser eliminada cuando la <a class="external" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" rel="external" title="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">WebRTC Capture and Stream API</a> haya sido implementada.</p> +<h2 id="Ver_tambien">Ver tambien</h2> +<ul> + <li>{{domxref("CameraCapabilities")}}</li> + <li>{{domxref("CameraControl")}}</li> + <li>{{domxref("CameraManager")}}</li> +</ul> diff --git a/files/es/web/api/cameracapabilities/flashmodes/index.html b/files/es/web/api/cameracapabilities/flashmodes/index.html new file mode 100644 index 0000000000..be89eac3ac --- /dev/null +++ b/files/es/web/api/cameracapabilities/flashmodes/index.html @@ -0,0 +1,37 @@ +--- +title: CameraCapabilities.flashModes +slug: Web/API/CameraCapabilities/flashModes +translation_of: Archive/B2G_OS/API/CameraCapabilities/flashModes +--- +<p>{{ ApiRef() }}</p> +<p>{{ non-standard_header() }}</p> +<p>{{ B2GOnlyHeader2('certified') }}</p> +<h2 id="Resumen">Resumen</h2> +<p>La propiedad <code>flashModes</code> es un <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> de cadenas que identifican cada modo de flash soportado por la camara. Los posibles valores son <code>auto</code>, <code>off</code>, <code>on</code> o <code>torch</code>.</p> +<h2 id="Sintaxis">Sintaxis</h2> +<pre>var flash = instanceOfCameraControl.capabilities.flashModes</pre> +<h2 id="Valor">Valor</h2> +<p>Devuelve un <code><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> de cadenas.</p> +<h2 id="Ejemplo">Ejemplo</h2> +<pre class="brush: js">var options = { + camera: navigator.mozCameras.getListOfCameras()[0] +}; + +function onSuccess(camera) { + var flash = camera.capabilities.flashModes; + + flash.forEach(function (value) { + console.log(value) + }); +}; + +navigator.mozCameras.getCamera(options, onSuccess) +</pre> +<h2 id="Specification" name="Specification">Especifiacion</h2> +<p>No es parte de ninguna especificacion; en cualquier caso, esta API deberia ser eliminada cuando la <a class="external" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" rel="external" title="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">WebRTC Capture and Stream API</a> haya sido implementada.</p> +<h2 id="Ver_tambien">Ver tambien</h2> +<ul> + <li>{{domxref("CameraCapabilities")}}</li> + <li>{{domxref("CameraControl")}}</li> + <li>{{domxref("CameraManager")}}</li> +</ul> diff --git a/files/es/web/api/cameracapabilities/index.html b/files/es/web/api/cameracapabilities/index.html new file mode 100644 index 0000000000..a534b51ab5 --- /dev/null +++ b/files/es/web/api/cameracapabilities/index.html @@ -0,0 +1,86 @@ +--- +title: CameraCapabilities +slug: Web/API/CameraCapabilities +translation_of: Archive/B2G_OS/API/CameraCapabilities +--- +<p>{{ Apiref() }}</p> +<p>{{ non-standard_header() }}</p> +<p>{{ B2GOnlyHeader2('certified') }}</p> +<p>The {{domxref("CameraControl.capabilities")}} property returns a <code>CameraCapabilities</code> object, which describes all the camera's capabilities.</p> +<h2 id="Properties">Properties</h2> +<dl> + <dt> + {{domxref("CameraCapabilities.effects")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of strings identifying the effects (such as <code>normal</code>, <code>sepia</code>, <code>mono</code>, etc.) that the camera supports.</dd> + <dt> + {{domxref("CameraCapabilities.fileFormats")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of strings identifying the file formats supported by the camera, such as <code>jpeg</code>, <code>rgb565</code>, etc.</dd> + <dt> + {{domxref("CameraCapabilities.flashModes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of strings identifying each of the flash modes supported by the camera. Possible values are <code>auto</code>, <code>off</code>, <code>on</code> or <code>torch</code>.</dd> + <dt> + {{domxref("CameraCapabilities.focusModes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of strings identifying each of the focus modes supported by the camera such as auto, fixed, macro, etc.</dd> + <dt> + {{domxref("CameraCapabilities.maxExposureCompensation")}} {{readonlyinline}}</dt> + <dd> + A number that defines the maximum supported exposure compensation value.</dd> + <dt> + {{domxref("CameraCapabilities.maxFocusAreas")}} {{readonlyinline}}</dt> + <dd> + A number that defines the maximum number of focus areas supported by the camera.</dd> + <dt> + {{domxref("CameraCapabilities.maxMeteringAreas")}} {{readonlyinline}}</dt> + <dd> + A number that defines the maximum number of metering areas supported by the camera.</dd> + <dt> + {{domxref("CameraCapabilities.minExposureCompensation")}} {{readonlyinline}}</dt> + <dd> + A number that defines the minimum supported exposure compensation value.</dd> + <dt> + {{domxref("CameraCapabilities.pictureSizes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of objects containing the <code>height</code> and <code>width</code> properties supported for picture taking.</dd> + <dt> + {{domxref("CameraCapabilities.previewSizes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of objects containing the <code>height</code> and <code>width</code> properties supported for the video preview stream.</dd> + <dt> + {{domxref("CameraCapabilities.recorderProfiles")}} {{readonlyinline}}</dt> + <dd> + An object with attributes for each of the supported recorder profiles.</dd> + <dt> + {{domxref("CameraCapabilities.sceneModes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of strings identifying each of the scene modes supported by the camera such as <code>auto</code>, <code>night</code>, <code>beach</code>, etc.</dd> + <dt> + {{domxref("CameraCapabilities.stepExposureCompensation")}} {{readonlyinline}}</dt> + <dd> + A number that defines the exposure compensation minimum step-size.</dd> + <dt> + {{domxref("CameraCapabilities.videoSizes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of objects containing the <code>height</code> and <code>width</code> properties supported for video recording.</dd> + <dt> + {{domxref("CameraCapabilities.whiteBalanceModes")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of strings identifiers for each white balance modes supported by the camera such as <code>auto</code>, <code>fluorecent</code>, etc.</dd> + <dt> + {{domxref("CameraCapabilities.zoomRatios")}} {{readonlyinline}}</dt> + <dd> + An <code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Array" title="/en-US/docs/JavaScript/Reference/Global_Objects/Array">Array</a></code> of numbers representing all the supported zoom ratios. If the camera has no zoom capabilities, the value is <code>null</code>.</dd> +</dl> +<h2 id="Methods">Methods</h2> +<p>None.</p> +<h2 id="Specification">Specification</h2> +<p>Not part of any specification; however, this API should be removed when the <a class="external" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" rel="external" title="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">WebRTC Capture and Stream API</a> has been implemented.</p> +<h2 id="See_also">See also</h2> +<ul> + <li>{{ domxref("CameraControl") }}</li> + <li>{{ domxref("CameraManager") }}</li> + <li>{{ domxref("window.navigator.mozCameras","navigator.mozCameras") }}</li> +</ul> diff --git a/files/es/web/api/cameracapabilities/maxexposurecompensation/index.html b/files/es/web/api/cameracapabilities/maxexposurecompensation/index.html new file mode 100644 index 0000000000..2baf025df3 --- /dev/null +++ b/files/es/web/api/cameracapabilities/maxexposurecompensation/index.html @@ -0,0 +1,33 @@ +--- +title: CameraCapabilities.maxExposureCompensation +slug: Web/API/CameraCapabilities/maxExposureCompensation +translation_of: Archive/B2G_OS/API/CameraCapabilities/maxExposureCompensation +--- +<p>{{ ApiRef() }}</p> +<p>{{ non-standard_header() }}</p> +<p>{{ B2GOnlyHeader2('certified') }}</p> +<h2 id="Resumen">Resumen</h2> +<p>La propiedad <code>maxExposureCompensation</code> es un número que define el valor máximo de compensación de exposición soportado.</p> +<h2 id="Sintaxis">Sintaxis</h2> +<pre>var max = instanceOfCameraControl.capabilities.maxExposureCompensation</pre> +<h2 id="Valor">Valor</h2> +<p>Devuelve un número.</p> +<h2 id="Ejemplo">Ejemplo</h2> +<pre class="brush: js">var options = { + camera: navigator.mozCameras.getListOfCameras()[0] +}; + +function onSuccess(camera) { + console.log(camera.capabilities.maxExposureCompensation); +}; + +navigator.mozCameras.getCamera(options, onSuccess) +</pre> +<h2 id="Specification" name="Specification">Especificación</h2> +<p>No forma parte de ninguna especificación; No obstante, esta API debería ser eliminada cuando la <a class="external" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" rel="external" title="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">WebRTC Capture and Stream API</a> haya sido implementada.</p> +<h2 id="Ver_también">Ver también</h2> +<ul> + <li>{{domxref("CameraCapabilities")}}</li> + <li>{{domxref("CameraControl")}}</li> + <li>{{domxref("CameraManager")}}</li> +</ul> diff --git a/files/es/web/api/cameracapabilities/maxfocusareas/index.html b/files/es/web/api/cameracapabilities/maxfocusareas/index.html new file mode 100644 index 0000000000..6d0024bebb --- /dev/null +++ b/files/es/web/api/cameracapabilities/maxfocusareas/index.html @@ -0,0 +1,33 @@ +--- +title: CameraCapabilities.maxFocusAreas +slug: Web/API/CameraCapabilities/maxFocusAreas +translation_of: Archive/B2G_OS/API/CameraCapabilities/maxFocusAreas +--- +<p>{{ Apiref() }}</p> +<p>{{ non-standard_header() }}</p> +<p>{{ B2GOnlyHeader2('certified') }}</p> +<h2 id="Resumen">Resumen</h2> +<p>La propiedad <code>maxFocusAreas</code> es un numero que define el numero maximo de areas de foco que permite la camara.</p> +<h2 id="Sintaxis">Sintaxis</h2> +<pre>var max = instanceOfCameraControl.capabilities.maxFocusAreas</pre> +<h2 id="Valor">Valor</h2> +<p>Devuelve un numero.</p> +<h2 id="Ejemplo">Ejemplo</h2> +<pre class="brush: js">var options = { + camera: navigator.mozCameras.getListOfCameras()[0] +}; + +function onSuccess(camera) { + console.log(camera.capabilities.maxFocusAreas); +}; + +navigator.mozCameras.getCamera(options, onSuccess) +</pre> +<h2 id="Specification" name="Specification">Especificacion</h2> +<p>No es parte de ninguna especificacion; en cualquier caso, esta API deberia ser eliminada cuando la <a class="external" href="http://dev.w3.org/2011/webrtc/editor/getusermedia.html" rel="external" title="http://dev.w3.org/2011/webrtc/editor/getusermedia.html">WebRTC Capture and Stream API</a> haya sido implementada.</p> +<h2 id="Ver_tambien">Ver tambien</h2> +<ul> + <li>{{domxref("CameraCapabilities")}}</li> + <li>{{domxref("CameraControl")}}</li> + <li>{{domxref("CameraManager")}}</li> +</ul> |