diff options
| author | 2009-09-18 02:55:53 -0400 | |
|---|---|---|
| committer | 2009-09-18 02:55:53 -0400 | |
| commit | b39dcb796ddf40fb87724ac28932a687756c91bd (patch) | |
| tree | dbe869ea2d26ec124d9daef8356a87251560f316 | |
| parent | 2925b8c62a03381e5b3ff159847e8312ae9dfee5 (diff) | |
| parent | bc95d663adf047116d0286b4a797e60ae2410fec (diff) | |
Merge change 25722 into eclair
* changes:
Modified the validation to use singal media player instance.
| -rw-r--r-- | media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java index 39846c6eb0b9..4a4ad6f31553 100644 --- a/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java +++ b/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java @@ -214,8 +214,10 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram Log.v(TAG, "before getduration"); mOutputDuration = mediaPlayer.getDuration(); Log.v(TAG, "get video dimension"); - mOutputVideoHeight = CodecTest.videoHeight(outputFilePath); - mOutputVideoWidth = CodecTest.videoWidth(outputFilePath); + mOutputVideoHeight = mediaPlayer.getVideoHeight(); + mOutputVideoWidth = mediaPlayer.getVideoWidth(); + //mOutputVideoHeight = CodecTest.videoHeight(outputFilePath); + //mOutputVideoWidth = CodecTest.videoWidth(outputFilePath); mediaPlayer.release(); } catch (Exception e) { Log.v(TAG, e.toString()); @@ -321,10 +323,10 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram recordVideo(15, 352, 288, MediaRecorder.VideoEncoder.H263, MediaRecorder.OutputFormat.THREE_GPP, MediaNames.RECORDED_PORTRAIT_H263, true); - videoRecordedResult = - validateVideo(MediaNames.RECORDED_PORTRAIT_H263, 352, 288); mCamera.lock(); mCamera.release(); + videoRecordedResult = + validateVideo(MediaNames.RECORDED_PORTRAIT_H263, 352, 288); } catch (Exception e) { Log.v(TAG, e.toString()); } @@ -453,4 +455,3 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram } } } - |