-
Notifications
You must be signed in to change notification settings - Fork 327
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
Unable to switch the camera once selected with the problem camera #433
Comments
Can you reproduce this issue on this more bare bones demo? https://gruhn.github.io/vue-qrcode-reader/select-camera-demo.html |
It can switch back the camera successfully on select-camera-demo.html. |
Maybe there is some race condition. It could be that you select a new camera but for some reason the old camera is not stopped, thus a camera is "still in use" and you are not allowed to request a different camera. I just added some more console logging to the "full demo". It should look somewhat like this:
In particular every |
Thanks for the detailed description and screenshots. I may have found the issue. Could you check if this preview deployment fixes your issue? https://gruhn.github.io/vue-qrcode-reader/pr-preview/pr-435/demos/FullDemo.html |
This preview deployment resolves the issue. Thank you very much! |
If `runStartTask` manages to start a camera but then errors, the `taskQueue` is perpetually in an error state. Fixing that by catching the error. Closes #433
If `runStartTask` manages to start a camera but then errors, the `taskQueue` is perpetually in an error state. Fixing that by catching the error. Closes #433
🎉 This issue has been resolved in version 5.5.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug:
There are three cameras available. The second one is already in use, but the first and third ones are fine.
When I switch to the second camera, which has a problem, and then switch back to the first or third camera, an error is displayed.
Uncaught (in promise) DOMException: Could not start video source
Screenshots:
select the first camera
switch the second camera([NotReadableError])
switch back to the first camera, got an error
Desktop (please complete the following information):
OS: Windows
Browser: Chrome(124.0.6367.207)
The text was updated successfully, but these errors were encountered: