Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
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 Respostas
Responde à pergunta

0

First get the track then :

const capabilities = track.getCapabilities()

console.log(capabilities)
about 4 years ago · Juan Pablo Isaza Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda