summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-03-03 17:39:26 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-03-03 17:39:26 -0800
commitded913e44381117f5ea420fb9df707d97cfccb5a (patch)
tree12e07ca9e6fdcbb7dbfcd9862bfeaac60bf41c98
parentdde4f12f1a3c7cba0ed5625b8d28886161ebe895 (diff)
parent7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec (diff)
downloadLegacyCamera-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.java12
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());