-
Notifications
You must be signed in to change notification settings - Fork 43
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
Camera not working in safari PWA. #122
Comments
same bro... |
same.... |
I did some digging today. I was using inspect.dev's intractive console (If you don't know it, think chrome dev console) on an iPhone and simply tired to reproduce BrowserCodeReader.addVideoSource by getting all devices and setting one stream as the srcObj of a video tag. No image was shown. Annoyed and hungry, I updated the phone to v17.0.2 and went for lunch. On my collegues iPhones that cannot update beyond v16, the issue still exists. I would be thankful if anyone could find a way to make this work on older versions of iOS. |
still exists |
I was getting the same error on iOS 17.6.1. As per this comment I fixed it simply by calling this code before starting the scanner: const camera = await navigator?.mediaDevices?.getUserMedia({ video: true }).catch((e: any) => ...); |
We are codding the PWA and in browser we hadn't problem. But when you installing site on home screen like PWA, in this application when you open the camera and fast closing app, at the new opening app and camera it's not working. Mb it's coz videostreem not cleared. Testin on iphones 7, 10, 11.
UPD: Camera starts working on 17 IOS version, BUT, it's randomly sizing in video element, regardless of video element size. Works with switching the camera to the front and back.
The text was updated successfully, but these errors were encountered: