Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error "Requested device not found" #76

Closed
bipin1611 opened this issue Sep 13, 2021 · 3 comments
Closed

error "Requested device not found" #76

bipin1611 opened this issue Sep 13, 2021 · 3 comments

Comments

@bipin1611
Copy link

First of all, Thank you for the Great work!

I have installed it on my project and added it at Two Places. At One Place it's working fine, but in Other Place, it's giving me the "Requested device not found" error, even if I have the same network, same browser,

Please help here.

Thank you!

@westonsoftware
Copy link
Owner

Hi, check your deviceId ... set it to null for the default camera or let your user pick one.

@bipinparmar-ss
Copy link

Yes, navigator.mediaDevices.getUserMedia are not getting deviceId in response.

As, I am very new to this, how do we get deviceId or generate new deviceId each time when this API call.?

Appreciate your help!

Thanks you!

@westonsoftware
Copy link
Owner

sorry for the late reply, you'll need to enumerateDevices() for this ...
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices

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

No branches or pull requests

3 participants