pull/325/head
Hoony 7 years ago
parent d0bb8cd31c
commit 781ff22d2a
  1. 3
      cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java

@ -700,7 +700,8 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera
CamcorderProfile profile = getCamcorderProfile(); CamcorderProfile profile = getCamcorderProfile();
mMediaRecorder.setOutputFormat(profile.fileFormat); mMediaRecorder.setOutputFormat(profile.fileFormat);
mMediaRecorder.setVideoFrameRate(profile.videoFrameRate); mMediaRecorder.setVideoFrameRate(profile.videoFrameRate);
mMediaRecorder.setVideoSize(profile.videoFrameWidth, profile.videoFrameHeight); // mMediaRecorder.setVideoSize(profile.videoFrameWidth, profile.videoFrameHeight);
mMediaRecorder.setVideoSize(414, 736);
if (mVideoCodec == VideoCodec.DEFAULT) { if (mVideoCodec == VideoCodec.DEFAULT) {
mMediaRecorder.setVideoEncoder(profile.videoCodec); mMediaRecorder.setVideoEncoder(profile.videoCodec);
} else { } else {

Loading…
Cancel
Save