Playback/decoding actually happens in a different process (the media server), so that process needs to have permission to read your file.
On Tue, Jan 27, 2009 at 4:01 PM, devileper <[email protected]> wrote: > > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

