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

169
Views
navigator.getUserMedia() doesn't work on mobile

While developing video chat with angular, I faced this issue.

ngOnInit() {
  navigator.mediaDevices && navigator.mediaDevices.getUserMedia({audio:true, video: true})
    .then(res=> console.log(res))
    .catch(err => console.log("err: ", err));
}

Console result:

err: DomException: Could not start video source

This works well on Desktop/Chrome, but never works on Android/Chrome. I tested it on Android Emulators such as Nox App Player and Bluestacks.

I've hosted the angular project with this command.

ng serve --host MY_IP_ADDRESS --disable-host-check --ssl

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Twilio developer evangelist here.

When you test this on an Android device, are you doing so on localhost or over HTTPS? You can only use getUserMedia on a secure domain or localhost.

If I need to test on a device, I use ngrok to tunnel to my localhost. You can then access the ngrok URL over HTTPS.

Another reason this might not work is that you're using the camera in another application or browser tab, and the device only allows access to the camera from one application at a time.

For the emulators, make sure you have cameras configured correctly within the emulator.

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!