找到了解决方案。由于我使用的是前置摄像头,因此我需要从前置摄像头获取摄像机配置文件。我做到了这一点:
mrec.setProfile(CamcorderProfile.get(1, CamcorderProfile.QUALITY_HIGH));
代替这个:
mrec.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));

找到了解决方案。由于我使用的是前置摄像头,因此我需要从前置摄像头获取摄像机配置文件。我做到了这一点:
mrec.setProfile(CamcorderProfile.get(1, CamcorderProfile.QUALITY_HIGH));
代替这个:
mrec.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));