FirebaseRTC icon indicating copy to clipboard operation
FirebaseRTC copied to clipboard

Uncaught (in promise) DOMException: Could not start video source openUserMedia

Open sonricardo opened this issue 5 years ago • 6 comments

the error brings me to this function: (when clicking on "cameraBtn" Button)

const stream = await navigator.mediaDevices.getUserMedia( {video: true, audio: true});

I tried on android browser and works fine, but in my pc doesnt work, any one knows why ???

sonricardo avatar May 09 '20 14:05 sonricardo

Silly question but does your PC have a camera and microphone? Also, is this in IE or another browser?

powerspowers avatar May 10 '20 09:05 powerspowers

I have same issue my pc have camera and its working fine with Firefox. I am make sure only chrome using the webcam and every required permission given but still face the error. Please help me.... Thanks

raviranjan003 avatar Mar 05 '21 06:03 raviranjan003

I have same experience. My camera shows on Opera browser but shows error on Chrome and other browsers with this error on chrome ("navigator.getUserMedia error: DOMException: Could not start video source")

Topstar2ng avatar Nov 08 '21 00:11 Topstar2ng

("navigator.getUserMedia error: DOMException: Could not start video source") ("navigator.getUserMedia error: DOMException: Permission denied by system.")

these exception come only when your application don’t have webcam and mic permissions at system/os level.

If you are facing this issue with MAC PC, then please go in System Preferences-> Security & privacy -> privacy window-> go to camera option then select your browser name and restart your browser.

In case of windows, i dont know the exact steps but there should an option in settings to allow camera and mic permission for apps.

Hope this helps.

jainketan6333 avatar Dec 25 '21 07:12 jainketan6333

I did it by reinstalling the camera.

ajuexin avatar Sep 24 '22 01:09 ajuexin

i am facing same problem, while using navigator.mediaDevices.getUserMedia() on Chrome Version 110.0.5481.178 (Official Build) (64-bit) and Microsoft Edge Version 110.0.1587.63 (Official build) (64-bit).

While it works fine under firefox 110.0.1 32-bit.

learncodingforweb avatar Mar 07 '23 09:03 learncodingforweb