I am making an Android application in which i need to play mp4 video in the android default native video player through a direct downloadable link.
To open the Android video player I am using the following code
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://b.revvolution.com/video/albums-3ry/newshare-der-34972.mp4?download=1"));
intent.setDataAndType(Uri.parse("http://b.revvolution.com/video/albums-3ry/newshare-der-34972.mp4?download=1"), "video/*");
startActivity(intent);
Here the URL is direct downloadable link for the mp4 video. This code opens the video player but video is not loaded in the video player
I have also used this URL
http://b.revvolution.com/video/albums-3ry/newshare-der-34972.mp4
This URL contains a html5 video player but the video is not loaded in Android video player
But when i use a link of 3GP video like
http://www.androidbegin.com/tutorial/AndroidCommercial.3gp
Then it works.
Please help.