Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

CameraCapabilities.effects

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

El valor de la propiedad effects en un Array que identifica los efectos  (tales como normal, sepia, mono, etc.) que soporta la camara.

Sintaxis

var effects = instanceOfCameraControl.capabilities.effects

Valor

Devuelve un Array de cadenas.

Ejemplo

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)

Especifiacion

No forma parte de ninguna especifiacion; en cualquier caso, esta API deberia ser eliminada cuando la WebRTC Capture and Stream API haya sido implementada.

Ver tambien

Etiquetas y colaboradores del documento

 Colaboradores en esta página: fscholz, AshfaqHossain, voylinux, maedca
 Última actualización por: AshfaqHossain,