CameraView icon indicating copy to clipboard operation
CameraView copied to clipboard

How to rotate just the camera preview?

Open Adrianogba opened this issue 2 years ago • 0 comments

How do I rotate just the preview?

I received some devices with a problem with the camera, it's rotated 90º by default. How can I rotate just the preview of the camera in order to fix it on the app, since there will be no firmware update to fix the camera itself? I've already implemented an example of solving the issue on a simple case using only CameraX, but I'm not finding something equivalent on CameraView.

Example of solving the issue I've done on CameraX: https://github.com/Adrianogba/k2_camera_rotation Screenshot_20220628_093236

Version used

CameraView 2.7.2.

Adrianogba avatar Jun 28 '22 12:06 Adrianogba