CameraCapabilities.maxExposureCompensation

  • Enlace amigable (slug) de la revisión: Web/API/CameraCapabilities.maxExposureCompensation
  • Título de la revisión: CameraCapabilities.maxExposureCompensation
  • Id de la revisión: 423331
  • Creada:
  • Creador: voylinux
  • ¿Es la revisión actual? No
  • Comentario

Contenido de la revisión

{{ domref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('certified') }}

Resumen

The maxExposureCompensation property is a number that defines the maximum supported exposure compensation value.

Syntax

var max = instanceOfCameraControl.capabilities.maxExposureCompensation

Value

Return a number.

Example

var options = {
  camera: navigator.mozCameras.getListOfCameras()[0]
};
 
function onSuccess(camera) {
  console.log(camera.capabilities.maxExposureCompensation);
};

navigator.mozCameras.getCamera(options, onSuccess)

Specification

Not part of any specification; however, this API should be removed when the WebRTC Capture and Stream API has been implemented.

See also

  • {{domxref("CameraCapabilities")}}
  • {{domxref("CameraControl")}}
  • {{domxref("CameraManager")}}

Fuente de la revisión

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('certified') }}</p>
<h2 id="Summary">Resumen</h2>
<p>The <code>maxExposureCompensation</code> property is a number that defines the maximum supported exposure compensation value.</p>
<h2 id="Syntax">Syntax</h2>
<pre>
var max = instanceOfCameraControl.capabilities.maxExposureCompensation</pre>
<h2 id="Value">Value</h2>
<p>Return a number.</p>
<h2 id="Example">Example</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">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("CameraCapabilities")}}</li>
  <li>{{domxref("CameraControl")}}</li>
  <li>{{domxref("CameraManager")}}</li>
</ul>
Revertir a esta revisión