i saved the video in this way, on my internal storage :
mMediaRecorder.setOutputFile(getOutputMediaFile(MEDIA_TYPE_VIDEO)
.toString());
outputFileName = getOutputMediaFile(MEDIA_TYPE_VIDEO).toString();
private File getOutputMediaFile(int type) {
mediaStorageDir = new File(getFilesDir().getAbsolutePath(),"YV" ); }
if (type == MEDIA_TYPE_VIDEO) {
mediaFile = new File(mediaStorageDir.getPath() + File.separator
+ "YV" + timeStamp + ".mp4");
the probleb begin whan i try to play the video like this :
MediaController mc = new MediaController (this);
videoView.setMediaController(mc);
videoView.setVideoPath(outputFileName);
videoView.start();
i receive msg that video can not open, i think this because world-readable permissions.
How to change the file permissions? , am I need to change anything in this line also ?
videoView.setVideoPath(outputFileName);