summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-03-01 18:38:44 -0800
committerJames Dong <jdong@google.com>2010-03-03 17:09:02 -0800
commit7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec (patch)
tree3f153a35f05ed5fed19f46283d35e1d3fd340886 /src
parent39d6546b87be7bd4e48a1f21a37e4f2a96f380d6 (diff)
downloadLegacyCamera-7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec.zip
LegacyCamera-7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec.tar.gz
LegacyCamera-7cd2db8800fd2ad9ed09d299d9c505a338b9c4ec.tar.bz2
Use unhidden public API from MediaRecorder.java class for setting parameters
This change depends on the MediaRecorder.java class change: 42513 bug - 2362412
Diffstat (limited to 'src')
-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());