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

173
Views
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 answers
Answer question

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 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!