直播电视频道的android电视频道、android

2023-09-08 08:30:26 作者:有人疼才显得多么出众

你好,我是新的Andr​​oid开发者。我不知道流媒体直播印地文电视频道。我觉得在网上,但没有得到完美的想法。

Hello i am new android developer. And I don't know about Live Streaming Hindi TV channels. I find on net but not get perfect idea.

任何人都可以给我的想法如何Android的工作与生活流渠道。

Can anybody give me idea about how android works with live Streaming channels.

在此先感谢。 酒窝

推荐答案

您可以使用VideoView这一点。请尝试以下操作:

You can use VideoView for this. Try following:

String LINK = "type_here_the_link";
setContentView(R.layout.mediaplayer);
VideoView videoView = (VideoView) findViewById(R.id.video);
MediaController mc = new MediaController(this);
mc.setAnchorView(videoView);
mc.setMediaPlayer(videoView);
Uri video = Uri.parse(LINK);
videoView.setMediaController(mc);
videoView.setVideoURI(video);
videoView.start();

有关详细信息,请参阅本:如何从URL播放视频

For more info, please see this: how to play video from url

 
精彩推荐
图片推荐