|
|
@ -688,7 +688,11 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera |
|
|
|
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.setVideoEncoder(mMapper.map(mVideoCodec)); |
|
|
|
if (mVideoCodec == VideoCodec.DEFAULT) { |
|
|
|
|
|
|
|
mMediaRecorder.setVideoEncoder(profile.videoCodec); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
mMediaRecorder.setVideoEncoder(mMapper.map(mVideoCodec)); |
|
|
|
|
|
|
|
} |
|
|
|
mMediaRecorder.setVideoEncodingBitRate(profile.videoBitRate); |
|
|
|
mMediaRecorder.setVideoEncodingBitRate(profile.videoBitRate); |
|
|
|
if (mAudio == Audio.ON) { |
|
|
|
if (mAudio == Audio.ON) { |
|
|
|
mMediaRecorder.setAudioChannels(profile.audioChannels); |
|
|
|
mMediaRecorder.setAudioChannels(profile.audioChannels); |
|
|
|