-
Notifications
You must be signed in to change notification settings - Fork 92
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
After upgrade to iOS 17.2.1, camera video preview shows only half width. #50
Comments
It does seem that the problem is linked to something unique about |
Having the same issue. @chrisimmel have you managed to patch it successfully? Doing so in the dist files is not working for me. |
Comments out the widht and height passed to the navigator to debug initial constraints on iOS. - [Relates to "Open After upgrade to iOS 17.2.1, camera video preview shows only half width. "](purple-technology#50)
@chrisimmel I tried your approach, and while it did solve the half-back screen issue, the quality of the footage decreased considerably on some phone models. I spent a couple of hours trying different settings, and I got the best results with these:
It solved the half-black screen issue on iOS ^17.2 while keeping a reasonable image quality. |
After my iPhone 12 Pro auto-updated to iOS 17.2.1, I see a brand new problem with the react-camera-pro
video
element that previews the stream coming from the camera. I saw this first in my own application, but I notice it happens also in the demo. I see near-identical behavior in Chrome, Safari, and Firefox browsers.The issue is that when the camera preview first appears, it fills only half of the video element width. Interestingly, if I switch facing mode, it fills the other half of the video element (see below).
Here it is in the demo app on Safari:
The problem disappears in all browsers if I switch the orientation to landscape mode. If I then switch back to portrait mode, it's still fine, and stays fine thereafter until I destroy and recreate the component. By "fine", I mean that the preview fills the entire video element like normal.
Since the issue appeared with an iOS update, it's likely an iOS problem. We can cross our fingers it will be fixed with a subsequent iOS update, but in the meantime I'm wondering if there might be a workaround or a patch we can apply to the library. I've locally forked the repo and tried some naïve tricks in the video constraints with no luck yet.
The text was updated successfully, but these errors were encountered: