android运行谷歌Media Recorder例子时,出现E/MediaRecorder: start failed: -19问题解决

prepareVideoRecorder方法中

原代码如下:

// Step 3: Set a CamcorderProfile (requires API Level 8 or higher)
mMediaRecorder.setProfile(profile);
 
  
 
  
将其改成:
 
  
 
  
// Step 3: Set a CamcorderProfile (requires API Level 8 or higher)
mMediaRecorder.setProfile(CamcorderProfile
        .get(CamcorderProfile.QUALITY_HIGH));

 
  
就可以解决了

你可能感兴趣的:(android运行谷歌Media Recorder例子时,出现E/MediaRecorder: start failed: -19问题解决)