No estándar
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
This API is available on Firefox OS for internal applications only.
Resumen
La propiedad flashModes
es un Array
de cadenas que identifican cada modo de flash soportado por la camara. Los posibles valores son auto
, off
, on
o torch
.
Sintaxis
var flash = instanceOfCameraControl.capabilities.flashModes
Valor
Devuelve un Array
de cadenas.
Ejemplo
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)
Especifiacion
No es parte de ninguna especificacion; en cualquier caso, esta API deberia ser eliminada cuando la WebRTC Capture and Stream API haya sido implementada.