Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
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 answers
Answer question

0

First get the track then :

const capabilities = track.getCapabilities()

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

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!