I'm new to android and trying to play video in android having three different kind of videos in a playlist(For front end user all are same kind of videos but on back end three different sources are used) one is youtube video 2nd is dailymotion and 3rd one is a MP4 video. Right now i'm running Youtube/Dailymotion using intent
Intent intent= new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(URL), "video/*");
startActivity(intent);
This working perfectly fine for Youtube and DailyMotion video but for MP4 it is taking too much time.
is there any way to play all types of videos in a single video player provided this videos are lengthy (more then 40-50M duration).
Thanks in advance.