am 0ddfe24a: am eb4f3256: Set the video encoding bit rate for the media recorder stress test.

* commit '0ddfe24a19882bb355313b6c5c14dcb0c6608365':
  Set the video encoding bit rate for the media recorder stress test.
This commit is contained in:
Yu Shan Emily Lau
2012-02-29 19:03:40 -08:00
committed by Android Git Automerger

View File

@ -365,6 +365,7 @@ public class MediaRecorderStressTest extends ActivityInstrumentationTestCase2<Me
mRecorder.setVideoSize(video_width, video_height); mRecorder.setVideoSize(video_width, video_height);
mRecorder.setVideoEncoder(video_encoder); mRecorder.setVideoEncoder(video_encoder);
mRecorder.setAudioEncoder(audio_encoder); mRecorder.setAudioEncoder(audio_encoder);
mRecorder.setVideoEncodingBitRate(bit_rate);
Log.v(TAG, "mediaRecorder setPreview"); Log.v(TAG, "mediaRecorder setPreview");
mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface()); mRecorder.setPreviewDisplay(mSurfaceHolder.getSurface());
mRecorder.prepare(); mRecorder.prepare();