-
Notifications
You must be signed in to change notification settings - Fork 217
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
Chromium Issue 849636: Guideline for handling NotReadableError #325
Comments
Hi @katranci, Media Capture and Streams defines when NotReadableError can be raised by
MDN restates it as
So this error can be raised if there is a hardware issue (or an issue between the browser and the OS interacting with the hardware). It can also be raised on Windows and Linux if another application is using the webcam (see WebRTC Issue 65190). If you encounter this issue, it may make sense to alert the user in the app to say something like,
You could then allow the user to click "Try again" when they are ready. By the way, do you notice an up-tick in the number of NotReadableErrors and do you have a breakdown by platform? There is a recent Chromium Issue 849636 tracking an uptick in NotReadableErrors. Please let me know if this helps, |
Thanks @markandrus, really appreciate your assistance. We haven't had more occurrences of this issue on our platform. I'll keep an eye on the Chromium issue. |
Just to fulfill the info. I got this error in Chrome Android when a user tried to switch cameras. In my case the fix was to stop all tracks of the active stream before trying to acquire a new one:
After that the error has gone |
Yep - this resolved issue for me also, was only stopping the first track on the stream [0]. Thanks! |
I was facing the same NorReadableError on windows 8, no other apps using the cam. My error was defining the video constrainst, I was using { audio: true, video: { height: 720, frameRate: 24, width: 1280 }, maxAudioBitrate: 16000 } for PC. But an specific PC don't support this dimensions. I fixed using this constrains Greetings |
This guy is a genius FYI. Totally it. |
Thanks, it's working fine for me. |
Hello,
We've captured the following error while a user was trying to turn on their webcam:
Do you have any recommendation on how to guide users suffering from this problem?
Thanks
The text was updated successfully, but these errors were encountered: