I'm trying to play mp4 video from raw folder. It is working fine in native video player but when I tried to play it using vitamio then it did not work for me. Are there any way to run mp4 video from raw folder in android using vitamio library??
I used this code to run video from raw folder.
VideoView view = (VideoView)findViewById(R.id.videoView);
String path = "android.resource://" + getPackageName() + "/" + R.raw.video_file;
view.setVideoURI(Uri.parse(path));
view.start();
Vitamio does not support to play video from raw folder. They are working with it and hope in next release they will fix the bug. We can solve this problem just copying the video from raw to sd card.