-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Video Error , error = Error getting userMedia, error = NotReadableError:Could not start video source on low end Android devices #38
Comments
Good day, I hope my raised issue helps, as you help me by creating this API |
Thanks @kenfookchoong for raising this concern I'll have a deeper look into this. The reason for calling navigator.mediaDevices.getUserMedia({ audio: false, video: true }).then(_ => in I'll rethink the APIs which would allow you to choose which pattern you want to follow. |
@mebjas Now I understand, the reason of that code. Then my suggested fix is not a fix. So sorry Regards, |
Hi @mebjas Here's a simple fix from my end. navigator.mediaDevices.getUserMedia({ audio: false, video: true }) I've uncommented my code above then add in Regards, |
I can confirm this Issue for Android 7, 8, 9, but not for 10 all using chrome. |
Looking deeper there are two concerns here
Thanks @kenfookchoong for raising both concerns and @OneDivZero for verifying the behaviours. I was able to reproduce both the issues and would look at both of them. For better tracking let's keep this thread for (2) and I have created the issue #41 for tracking (1) |
@kenfookchoong @OneDivZero I have sent a PR and deployed the changes already to the demo page - https://blog.minhazav.dev/research/html5-qrcode Could you verify both the scenarios? I have verified problem (1) to be fixed - @kenfookchoong its very similar to the approach you suggested, thanks for that. Also for (2) I was not able to reproduce the issue after the fix, can you verify if this is happening now? Thanks in advance! |
I can test and confirm it tommorow, cause I'll do tommorow the final feature-integration in my app. |
hi guys, this issue was fixed. |
@mebjas I can confirm the issue 'Video Error , error = Error getting userMedia, error = NotReadableError:Could not start video source' to be fixed on Android 7. Great! |
hi @mebjas It is fixed! Thanks! Regards, |
Thanks @kenfookchoong for raising the issue and suggesting the fix! @OneDivZero thanks again for validating the issue and fix - this has been super helpful in getting the issue to be fixed. @keanwalker Thanks for validating the issue resolution! This kind of open source collaboration is really fun :) |
Describe the bug
When you press request permission button.
It will run navigator.mediaDevices.getUserMedia({ audio: false, video: true }).then(_ => from static getCameras() method
To Reproduce
Steps to reproduce the behavior:
To avoid the NonReadableError
Expected behavior
See error Video Error , error = Error getting userMedia, error = NotReadableError:Could not start video source
The Fix
Just comment the code shown in the screenshot.
//navigator.mediaDevices.getUserMedia({ audio: false, video: true })
// .then(_ => {
**content
//.catch(err => {
// reject(
${err.name} : ${err.message}
);//})
Screenshots
Desktop (please complete the following information):
Desktop basically have no issue because PCs are too fast
Smartphone (please complete the following information):
Additional context
I'm sorry if I raised a wrong issue.
The text was updated successfully, but these errors were encountered: