-
-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Front camera recording is inverted when going from Back to Front camera during recording on Android #2854
Comments
What does inverted mean? Please attach a sample video. |
Here is a screen recording using the Android Pixel 6 Pro API 34 emulator. The same happens on physical device: |
Okay, this is a CameraX bug then, nothing I am doing explicitly - could you create a bug report in the Google CameraX issue tracker about this? |
@mrousavy I think I figured out the issue -- at least doing this change fixes it for me: In this file: I commented out line 308: And the issue was resolved. I think this is because in my use case, the recording starts using the back camera and the CameraX must set a certain orientation, and when I switch to Front camera during the same recording the orientation is not updated to relative to Front camera, so mirrorMode causes the inversion. I'm not sure if there is a way to adjust the code to check if the orientation is correct before applying the setMirrorMode or maybe this is the desired behavior just an issue with CameraX as you say. Thanks. |
What's happening?
On an Android device, while taking a video recording with the Back camera started, if user switches to Front camera during the same recording the Front video recording becomes inverted -- it looks okay during the recording session but the saved video recording of the Front camera is inverted (upside-down).
Interestingly, if I start the recording using the Front camera then switch to Back camera the recording of the Front video is fine.
Reproduceable Code
Relevant log output
Camera Device
Device
Android Pixel 6 Pro API 34 (emulator), Pixel 5 API 34 (physical device)
VisionCamera Version
4.0.3
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (鈿狅笍 your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: