Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
AmbienLightSensor not supported

For a project I need to get the brightness (lux) of a camera in a web app via JS.

I've found this: https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor. But using this on Chrome & Edge gives me that the API is not supported. Tried it also on different machines but keep getting the same. I also found this old code but it didn't work either: window.addEventListener('devicelight', listener)

I have the feeling it should be possible to make since I can change soemthing in the settings to automatic change screen brightness which leads me to believe I have the right sensors.

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

First get the track then :

const capabilities = track.getCapabilities()

console.log(capabilities)
about 4 years ago · Juan Pablo Isaza Denunciar

0

The answer was that I need to set the flag in chrome://flags/ to enabled since it is something experimental!

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda