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

234
Views
No se puede iniciar el sensor de luz ambiental (Chrome, MacOS)

He estado tratando de experimentar con ALS pero hasta ahora no puedo hacer que funcione. He usado el siguiente fragmento:

 navigator.permissions.query({ name: 'ambient-light-sensor' }).then(result => { if (result.state === 'denied') { console.log('Permission to use ambient light sensor is denied.'); return; } const als = new AmbientLightSensor({frequency: 10}); als.addEventListener('activate', () => console.log('Ready to measure EV.')); als.addEventListener('error', event => console.log(`Error: ${event.error.name}`)); als.addEventListener('reading', () => { // Defaut ISO value. const ISO = 100; // Incident-light calibration constant. const C = 250; let EV = Math.round(Math.log2((als.illuminance * ISO) / C)); console.log(`Exposure Value (EV) is: ${EV}`); }); als.start(); });

El error que recibo es: Error: NotReadableError . No hay otros errores o advertencias en la consola.

Chrome Canarias v97, MacOS 10.15.7

about 4 years ago · Juan Pablo Isaza
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!