I'm using Erel's example for Camera2: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/
I made only one change: #SupportedOrientations: unspecified
When I rotate the phone in landscape mode, the preview (for both video and still image) is stretched vertically.
If I switch between video and still image, while NOT changing orientation, preview is still stretched.
Images and videos are saved correctly, correct orientation, no stretching (proper ratio).
Phone is Huawei P Smart 2019, Android 10, B4A 10.50
Also, I'm very very noob at this, so please keep explanations extremely simple, with exact code.
Please help. Thank you.
I made only one change: #SupportedOrientations: unspecified
When I rotate the phone in landscape mode, the preview (for both video and still image) is stretched vertically.
If I switch between video and still image, while NOT changing orientation, preview is still stretched.
Images and videos are saved correctly, correct orientation, no stretching (proper ratio).
Phone is Huawei P Smart 2019, Android 10, B4A 10.50
Also, I'm very very noob at this, so please keep explanations extremely simple, with exact code.
Please help. Thank you.