I have a video file saved on an SD Card. The path to it is saved in my database. While running the video file, I fetch the path from the database.
My video path is:
/mnt/sdcard/VideoLog/2013-01-01 11.18.57.mp4
and the code is as follows:
video_view_player = (VideoView) findViewById(R.id.videoview_player);
video_view_player.setVideoPath(filename);
//video_view_player.setMediaController(new MediaController(this));
//video_view_player.requestFocus();
video_view_player.start();
The filename in the video path is fetched from the database.
I even tried converting the .mp4 video into .3gp, but in vain.
1 Answer