am b39dcb79
: Merge change 25722 into eclair
Merge commit 'b39dcb796ddf40fb87724ac28932a687756c91bd' into eclair-plus-aosp * commit 'b39dcb796ddf40fb87724ac28932a687756c91bd': Modified the validation to use singal media player instance.
This commit is contained in:
@ -214,8 +214,10 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram
|
|||||||
Log.v(TAG, "before getduration");
|
Log.v(TAG, "before getduration");
|
||||||
mOutputDuration = mediaPlayer.getDuration();
|
mOutputDuration = mediaPlayer.getDuration();
|
||||||
Log.v(TAG, "get video dimension");
|
Log.v(TAG, "get video dimension");
|
||||||
mOutputVideoHeight = CodecTest.videoHeight(outputFilePath);
|
mOutputVideoHeight = mediaPlayer.getVideoHeight();
|
||||||
mOutputVideoWidth = CodecTest.videoWidth(outputFilePath);
|
mOutputVideoWidth = mediaPlayer.getVideoWidth();
|
||||||
|
//mOutputVideoHeight = CodecTest.videoHeight(outputFilePath);
|
||||||
|
//mOutputVideoWidth = CodecTest.videoWidth(outputFilePath);
|
||||||
mediaPlayer.release();
|
mediaPlayer.release();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.v(TAG, e.toString());
|
Log.v(TAG, e.toString());
|
||||||
@ -321,10 +323,10 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram
|
|||||||
recordVideo(15, 352, 288, MediaRecorder.VideoEncoder.H263,
|
recordVideo(15, 352, 288, MediaRecorder.VideoEncoder.H263,
|
||||||
MediaRecorder.OutputFormat.THREE_GPP,
|
MediaRecorder.OutputFormat.THREE_GPP,
|
||||||
MediaNames.RECORDED_PORTRAIT_H263, true);
|
MediaNames.RECORDED_PORTRAIT_H263, true);
|
||||||
videoRecordedResult =
|
|
||||||
validateVideo(MediaNames.RECORDED_PORTRAIT_H263, 352, 288);
|
|
||||||
mCamera.lock();
|
mCamera.lock();
|
||||||
mCamera.release();
|
mCamera.release();
|
||||||
|
videoRecordedResult =
|
||||||
|
validateVideo(MediaNames.RECORDED_PORTRAIT_H263, 352, 288);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.v(TAG, e.toString());
|
Log.v(TAG, e.toString());
|
||||||
}
|
}
|
||||||
@ -453,4 +455,3 @@ public class MediaRecorderTest extends ActivityInstrumentationTestCase<MediaFram
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user