mozilla

Revision 401225 of Camera API

  • Revision slug: WebAPI/Camera
  • Revision title: Camera API
  • Revision id: 401225
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{ domref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('certified') }}

The Camera API allows applications to manage the camera of the device. It allows them to take photographs, record videos, and get information like the focus, the zoom, the white balance, the flash, … It is a priviledged API and can only be used by certified applications.

Note: Except if you are implementing a replacement for the default Camera application, you shouldn't use this API. Instead, if you want to use the camera in your device, you should use the Web Activities API.

Interfaces

  • {{domxref("window.navigator.mozCamera", "navigator.mozCamera")}}
  • {{domxref("CameraManager")}}
  • {{domxref("CameraControl")}}
  • {{domxref("CameraCapabilities")}}

 

Revision Source

<p>{{ domref() }}</p>
<p>{{ non-standard_header() }}</p>
<p>{{ B2GOnlyHeader2('certified') }}</p>
<p>The <strong>Camera API</strong> allows applications to manage the camera of the device. It allows them to take photographs, record videos, and get information like the focus, the zoom, the white balance, the flash, … It is a priviledged API and can only be used by certified applications.</p>
<div class="note">
  <p><strong>Note:</strong> Except if you are implementing a replacement for the default <em>Camera</em> application, you shouldn't use this API. Instead, if you want to use the camera in your device, you should use the <a href="/en-US/docs/WebAPI/Web_Activities" title="/en-US/docs/Web/API/Web_Activities">Web Activities API</a>.</p>
</div>
<h2 id="Interfaces">Interfaces</h2>
<div class="index">
  <ul>
    <li>{{domxref("window.navigator.mozCamera", "navigator.mozCamera")}}</li>
    <li>{{domxref("CameraManager")}}</li>
    <li>{{domxref("CameraControl")}}</li>
    <li>{{domxref("CameraCapabilities")}}</li>
  </ul>
</div>
<p>&nbsp;</p>
Revert to this revision