Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda