setOutputFormat called in an invalid state: 4 (where and why)
问题 I have the following code: Log.i("xx","A"); media_recorder = new MediaRecorder(); Log.i("xx","B"); media_recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); Log.i("xx","C"); media_recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); Log.i("xx","D"); media_recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); Log.i("xx","E"); media_recorder.setVideoSize(320, 240); Log.i("xx","F"); media_recorder.setVideoFrameRate(15); Log.i("xx","G"); CamcorderProfile profile =