-
-
Notifications
You must be signed in to change notification settings - Fork 976
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 getting userMedia, error = NotReadableError:Could not start video source #483
Comments
you certainly have an Android or Browser restriction somewhere. try to see on your Android settings if Chrome is allowed to use your camera |
The camera works when I remove |
maybe there is something wrong with your samsung phone. it takes maybe more time for the camera to get initialized. |
this sounds more a camera focus issue. try to modify your constraints and aspect ratio like this |
My config is like this:
It's still not working. |
try the config I told you above. also is your issue concern one QR code or all you scan? |
I changed the config to this:
This error happens on camera start, so I can't even scan any QR codes. The camera doesn't appear. I'll leave the whole code here:
|
html5QrCode.start([CAMERA ID], config, qrCodeSuccessCallback).catch(err => .... |
It doesn't give me an error now. But the reason I was using it like that was to force the back camera, is there another way to do that? |
{ facingMode: "environment" } must be in the config, then choose the camera ID of your back camera. |
It's working now! Thank you very much Robert. |
I ran into the same problem, but still failed with the above configuration,
|
Describe the bug
I think this is the same error as reported in #38. In my samsung S7 running android 8 this error appears when I execute
start()
quickly aftergetCameras()
. The same does not happen in my oneplus 6 running android 11.I call
getCameras()
only to ask permission. I don't use the cameraID's, if there's a better way to ask permission I would appreciate.To Reproduce
Steps to reproduce the behavior:
Run
getCameras()
andstart()
in quick sucession in a low end android phoneDesktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: