private String getOutputMediaPath() {
java.util.Date date = new java.util.Date();
String timeTemp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(date.getTime());
//File storageFile = new File(Environment.getExternalStorageDirectory().getAbsolutePath());
File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator +
"VID_" + timeTemp + ".mp4");
Log.e("Error", "getOutputMediaPath file path---"+file.getAbsolutePath());
return file.getAbsolutePath();
}
转载于:https://blog.51cto.com/9839380/1833977