|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|