From cc6116a951888d4851af6d5d6286b3513773676f Mon Sep 17 00:00:00 2001 From: Eduardo Omine Date: Fri, 9 Jun 2017 20:04:17 -0300 Subject: [PATCH] Fixed landscape orientation of recorded videos --- camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java index ca9e1f48..01de0fb1 100644 --- a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java +++ b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java @@ -427,7 +427,7 @@ public class Camera1 extends CameraImpl { mVideoFile = new File(mPreview.getView().getContext().getExternalFilesDir(null), "video.mp4"); mMediaRecorder.setOutputFile(mVideoFile.getAbsolutePath()); - mMediaRecorder.setOrientationHint(mCameraInfo.orientation); + mMediaRecorder.setOrientationHint(calculatePreviewRotation()); } private void prepareMediaRecorder() {