How to stream video from a web address and play it in Android?

I want to stream video from the website and play it in Android. I want to play video like YouTube video. For example, stream some bytes and start playing video. Streaming media also continues in the background

How is that possible? I've tried videoview and mediaplayer. But when the video size is very large, the video can't play and display a blank screen

resolvent:

Try this Code:

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("http://www.yourvideo.mp4"), Req_code);
startActivityForResult(intent);

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>