Android Video View - Fails to Load file from SD Card
- by MasterGaurav
Hi,
I have an activity that uses VideoView and MediaController.
I have a .mp4 file.
(1) When I put the file in res/raw folder, I can play the video using Uri.parse("android.resource://<package>/" + R.raw.id_video)
(2) However, when I put the same file in the file-system, it plays properly.
I use videoView.setVideoPath("/sdcard/myfile.mp4");
What can be the problem?
--
Happy Hacking,
Gaurav
www.mastergaurav.com