Android Question Camera2 video capturing: overturned result

peacemaker

Expert
Licensed User
Longtime User
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
B4X:
    If SensorOrientation = 90 Or SensorOrientation = 270 Then
        orientations = Array(90, 0, 270, 180)
    Else
        orientations = Array(270, 180, 90, 0)
    End If
?
 
Last edited:
Top