照相机,我自己写的代码:
mMediaRecorderVideo=new MediaRecorder(); mCamera=Camera.open(); mCamera.setDisplayOrientation(90); mCamera.unlock(); mMediaRecorderVideo.setCamera(mCamera); mMediaRecorderVideo.setAudioSource(MediaRecorder.AudioSource.DEFAULT); mMediaRecorderVideo.setVideoSource(MediaRecorder.VideoSource.DEFAULT); mMediaRecorderVideo.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));
使用设备的默认相机,但是如果有前置相机需要设置,应该怎么检测?谢谢
慕斯709654
眼眸繁星
相关分类