Android Video View - Fails to Load file from SD Card
Posted
by MasterGaurav
on Stack Overflow
See other posts from Stack Overflow
or by MasterGaurav
Published on 2010-05-05T09:27:39Z
Indexed on
2010/05/05
9:58 UTC
Read the original article
Hit count: 330
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
© Stack Overflow or respective owner