I am trying to use Android's VideoView to play a video off of the sdcard folder on my device. It seems like it used to work just fine but I refactored some code and now I can't seem to get it working. Here is a sample:
// filepath = Environment.getExternalStorageDirectory().getPath() + "/test.mp4"
videoView = new VideoView(AkadiApplication.Instance().getApplicationContext());
videoView.setVideoURI(Uri.parse(filePath));
videoView.start();
videoView.requestFocus();
I have verified through the application that the file exists so I know it's not a FileNotFound issue.
Also, if I set a onComplete callback it is called as if the video played through (no video or sound, just a black square where the view should be). I know the video codec is valid because the device plays it outside my application. I think it might be related to a permission issue: