我正在尝试保存录制视频:
File videoFile;
File sampleDir =new File(Environment.getExternalStorageDirectory().getAbsolutePath()
+ File.separator + "DCIM/Camera/");
try
{
videoFile = File.createTempFile("ibm", ".mp4", sampleDir);
}
catch (IOException e)
{
Log.e(TAG,"sdcard access error");
return;
}
Log.i(TAG,"name file: "+videoFile.getAbsolutePath());
mMediaRecorder.setOutputFile(videoFile.getAbsolutePath());
mMediaRecorder.prepare();
mMediaRecorder.start();
通话后:
mMediaRecorder.stop();
mMediaRecorder.reset();
mMediaRecorder.release();
在 dcim 文件夹中,我的视频文件已出...怎么了?