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

171
Views
How to solve "Permission denied" in getUserMedia?

I'm in Chrome on Windows.

I would like to use the camera in my web app that with a domain, say www.example.com.

We have a dev environment called www.dev.example.com

We run the following code to get the camera video :

navigator.mediaDevices.getUserMedia({
        video: {
            facingMode: 'environment',
            audio: !1
        }
    }).then(function(e) {
        console.log('The camera is working');
    })

in the our dev domain (www.dev.example.com) this code is working properly. However, when we change the domain to www.example.com, the code is not working any more (the exact same code). We get the error :

Uncaught (in promise) DOMException: Permission denied

We tried using Chrome Dev Console. In fact, this code works on any domain (including StackOverflow) except our domain www.example.com.

Does anyone know if there is something to check related to the domain please in order to make this code work ?

Thanks Cheers, Does anyone know how to solve that please.

about 4 years ago · Santiago Trujillo
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!