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.