Fixed landscape orientation of recorded videos

pull/1/head
Eduardo Omine 7 years ago
parent 4c2d2a271a
commit cc6116a951
  1. 2
      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"); mVideoFile = new File(mPreview.getView().getContext().getExternalFilesDir(null), "video.mp4");
mMediaRecorder.setOutputFile(mVideoFile.getAbsolutePath()); mMediaRecorder.setOutputFile(mVideoFile.getAbsolutePath());
mMediaRecorder.setOrientationHint(mCameraInfo.orientation); mMediaRecorder.setOrientationHint(calculatePreviewRotation());
} }
private void prepareMediaRecorder() { private void prepareMediaRecorder() {

Loading…
Cancel
Save