I have a app that needs to play .mp4 videos.
Here is the code:
try
{
videoView1 = (VideoView)findViewById(R.id.Video1);
video= Uri.parse("android.resource://dr.droid/" + R.raw.burn);
mc = new MediaController(this);
videoView1.setMediaController(mc);
videoView1.setVideoURI(video);
videoView1.start();
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(), Toast.LENGTH_SHORT).show();
}
I always get an alert cannot play video, But I got no errors. Any ideas?