Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

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

Open
sonricardo opened this issue May 9, 2020 · 6 comments

Comments

@sonricardo
Copy link

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 sonricardo changed the title Uncaught (in promise) DOMException: Could not start video source openUserMedia @ app.js:190 async function (async) openUserMedia Uncaught (in promise) DOMException: Could not start video source openUserMedia May 9, 2020
@powerspowers
Copy link

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

@raviranjan003
Copy link

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

@Topstar2ng
Copy link

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")

@jainketan6333
Copy link

jainketan6333 commented Dec 25, 2021

("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.

@ajuexin
Copy link

ajuexin commented Sep 24, 2022

I did it by reinstalling the camera.

@learncodingforweb
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants