diff options
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 4a7b227..f17e690 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -911,14 +911,10 @@ public class VideoCamera extends NoSearchActivity mMediaRecorder.setVideoFrameRate(mProfile.mVideoFrameRate); mMediaRecorder.setVideoSize( mProfile.mVideoFrameWidth, mProfile.mVideoFrameHeight); - mMediaRecorder.setParameters(String.format( - "video-param-encoding-bitrate=%d", mProfile.mVideoBitRate)); - mMediaRecorder.setParameters(String.format( - "audio-param-encoding-bitrate=%d", mProfile.mAudioBitRate)); - mMediaRecorder.setParameters(String.format( - "audio-param-number-of-channels=%d", mProfile.mAudioChannels)); - mMediaRecorder.setParameters(String.format( - "audio-param-sampling-rate=%d", mProfile.mAudioSampleRate)); + mMediaRecorder.setVideoEncodingBitRate(mProfile.mVideoBitRate); + mMediaRecorder.setAudioEncodingBitRate(mProfile.mAudioBitRate); + mMediaRecorder.setAudioChannels(mProfile.mAudioChannels); + mMediaRecorder.setAudioSamplingRate(mProfile.mAudioSampleRate); mMediaRecorder.setVideoEncoder(mProfile.mVideoCodec); mMediaRecorder.setAudioEncoder(mProfile.mAudioCodec); mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); |