我从Android Developer获得了这个例子,它工作得很好
但我面临一个小问题,我需要捕捉Time Lapse视频。当我设置视频质量QUALITY_TIME_LAPSE_HIGH
时,它就会停止工作。但是QUALITY_HIGH
它的工作正常。我认为必须与QUALITY_TIME_LAPSE_HIGH
合作,但事实并非如此。我究竟做错了什么 ?为什么不是
使用QUALITY_TIME_LAPSE_HIGH
?
mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));
//mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_TIME_LAPSE_HIGH)); When I set it App stop working
// Step 5.5: Set the video capture rate to a low number
mMediaRecorder.setCaptureRate(0.1); // capture a frame every 10 seconds