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

207
Vistas
getUserMedia() sometimes fails and sometimes works

The following code sometimes fails and sometimes it works:

navigator.mediaDevices.getUserMedia(
        {video : true}
        )
      .then((stream) => {
        video.srcObject = stream;
      })
      .catch(err => console.error('getUserMedia() failed: ', err));

Error Message when failing: DOMException: Requested device not found

Without changing anything, half an hour later it works. I work on a MacBook Pro (13-inch, M1, 2020), which does have a webcam. I use Chrome, but tested also in Safari and the result is the same. I understand that the error means, that the constraints could not be fulfilled ---> no webcam found. But I do not understand why my webcam sometimes cannot be found and without changing anything 30 minutes later it works. Using any other tools like Teams, Skype, etc. this problem does not arise.

Update: One more thing I recognized: In case of success, my browser asks for the permission to use webcam. In case of failure, my browser does not even ask for that permission.

My Question: Why can my webcam sometimes be found and sometimes not?

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