diff options
author | James Dong <jdong@google.com> | 2010-03-03 17:39:26 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-03-03 17:39:26 -0800 |
commit | ded913e44381117f5ea420fb9df707d97cfccb5a (patch) | |
tree | 12e07ca9e6fdcbb7dbfcd9862bfeaac60bf41c98 | |
parent | dde4f12f1a3c7cba0ed5625b8d28886161ebe895 (diff) | |
parent | 7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec (diff) | |
download | LegacyCamera-ded913e44381117f5ea420fb9df707d97cfccb5a.zip LegacyCamera-ded913e44381117f5ea420fb9df707d97cfccb5a.tar.gz LegacyCamera-ded913e44381117f5ea420fb9df707d97cfccb5a.tar.bz2 |
Merge "Use unhidden public API from MediaRecorder.java class for setting parameters This change depends on the MediaRecorder.java class change: 42513"
-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()); |