From 293a6de794339f43d4d9bd5d43e7ed209fcfbce4 Mon Sep 17 00:00:00 2001 From: Dylan McIntyre Date: Mon, 3 Apr 2017 13:41:01 -0400 Subject: [PATCH] make recording profile more compatible --- camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java index 8a4adf50..ca814c58 100644 --- a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java +++ b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java @@ -397,13 +397,13 @@ public class Camera1 extends CameraImpl { mCamera.unlock(); mMediaRecorder.setCamera(mCamera); + mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); - mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER); - mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_480P)); + mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT); + mMediaRecorder.setProfile(CamcorderProfile.get(mCameraId, CamcorderProfile.QUALITY_HIGH)); mVideoFile = new File(mPreview.getView().getContext().getExternalFilesDir(null), "video.mp4"); mMediaRecorder.setOutputFile(mVideoFile.getAbsolutePath()); - mMediaRecorder.setOrientationHint(mCameraInfo.orientation); }