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

175
Vistas
How turn off video in webrtc connection if camera not allowed or not found?

I try this

peerConnection.createOffer({offerToReceiveAudio: 1, offerToReceiveVideo: 1});

But if camera not found or not allowed i get errors in my code. Now i can't get this offer on another computer.

Can you help me please? Thanks.

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

I think in this case you should check the availability of devices first by using javascript code.

If the user doesn't allow video or doesn't have a webcam/camera then the media-devices type will have the attribute with "null" value. FYI, you can also check it by typing "DetectRTC.MediaDevices" in developer tool of browser.

I found a demo for this : https://www.webrtc-experiment.com/DetectRTC/

You can read more in MDN web doc: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

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