--- title: CameraCapabilities slug: Web/API/CameraCapabilities translation_of: Archive/B2G_OS/API/CameraCapabilities ---

{{ Apiref() }}

{{ non-standard_header() }}

{{ B2GOnlyHeader2('certified') }}

The {{domxref("CameraControl.capabilities")}} property returns a CameraCapabilities object, which describes all the camera's capabilities.

Properties

{{domxref("CameraCapabilities.effects")}} {{readonlyinline}}
An Array of strings identifying the effects (such as normal, sepia, mono, etc.) that the camera supports.
{{domxref("CameraCapabilities.fileFormats")}} {{readonlyinline}}
An Array of strings identifying the file formats supported by the camera, such as jpeg, rgb565, etc.
{{domxref("CameraCapabilities.flashModes")}} {{readonlyinline}}
An Array of strings identifying each of the flash modes supported by the camera. Possible values are auto, off, on or torch.
{{domxref("CameraCapabilities.focusModes")}} {{readonlyinline}}
An Array of strings identifying each of the focus modes supported by the camera such as auto, fixed, macro, etc.
{{domxref("CameraCapabilities.maxExposureCompensation")}} {{readonlyinline}}
A number that defines the maximum supported exposure compensation value.
{{domxref("CameraCapabilities.maxFocusAreas")}} {{readonlyinline}}
A number that defines the maximum number of focus areas supported by the camera.
{{domxref("CameraCapabilities.maxMeteringAreas")}} {{readonlyinline}}
A number that defines the maximum number of metering areas supported by the camera.
{{domxref("CameraCapabilities.minExposureCompensation")}} {{readonlyinline}}
A number that defines the minimum supported exposure compensation value.
{{domxref("CameraCapabilities.pictureSizes")}} {{readonlyinline}}
An Array of objects containing the height and width properties supported for picture taking.
{{domxref("CameraCapabilities.previewSizes")}} {{readonlyinline}}
An Array of objects containing the height and width properties supported for the video preview stream.
{{domxref("CameraCapabilities.recorderProfiles")}} {{readonlyinline}}
An object with attributes for each of the supported recorder profiles.
{{domxref("CameraCapabilities.sceneModes")}} {{readonlyinline}}
An Array of strings identifying each of the scene modes supported by the camera such as auto, night, beach, etc.
{{domxref("CameraCapabilities.stepExposureCompensation")}} {{readonlyinline}}
A number that defines the exposure compensation minimum step-size.
{{domxref("CameraCapabilities.videoSizes")}} {{readonlyinline}}
An Array of objects containing the height and width properties supported for video recording.
{{domxref("CameraCapabilities.whiteBalanceModes")}} {{readonlyinline}}
An Array of strings identifiers for each white balance modes supported by the camera such as auto, fluorecent, etc.
{{domxref("CameraCapabilities.zoomRatios")}} {{readonlyinline}}
An Array of numbers representing all the supported zoom ratios. If the camera has no zoom capabilities, the value is null.

Methods

None.

Specification

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

See also