I can only get the VideoView to play videos on the sdcard, NOT local
to my application.  Is there a permission requirement to get this
working or can it only access the sdcard?

Working:
VideoView videoView = (VideoView) findViewById(R.id.video);
videoView.setPath("/sdcard/video.mp4");

Not Working ("Cannot Play Video"):
VideoView videoView = (VideoView) findViewById(R.id.video);
videoView.setPath("/data/data/com.myapp/app_files/video.mp4");

Log Errors:
01-27 15:56:14.920: ERROR/MediaPlayer(3341): Error (-4,0)
01-27 15:56:14.920: DEBUG/VideoView(3341): Error: -4,0

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to