peacemaker Expert Licensed User Longtime User Apr 3, 2019 #1 HI, All Trying to record video by Camera2 lib v.1.11 on Samsung A8 in Android 8. Activity is strictly in landscape orientation, camera is always FRONT. Recording is OK. But the result video file is overturned. 180 dergees. Why ? If to record in portrait orientation - all is OK. Maybe Code: Copy If SensorOrientation = 90 Or SensorOrientation = 270 Then orientations = Array(90, 0, 270, 180) Else orientations = Array(270, 180, 90, 0) End If ? Last edited: Apr 3, 2019
HI, All Trying to record video by Camera2 lib v.1.11 on Samsung A8 in Android 8. Activity is strictly in landscape orientation, camera is always FRONT. Recording is OK. But the result video file is overturned. 180 dergees. Why ? If to record in portrait orientation - all is OK. Maybe Code: Copy If SensorOrientation = 90 Or SensorOrientation = 270 Then orientations = Array(90, 0, 270, 180) Else orientations = Array(270, 180, 90, 0) End If ?
Erel B4X founder Staff member Licensed User Longtime User Apr 7, 2019 #2 Fixed in v1.30: https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920 Upvote 0