直播电视频道的android [英] live streaming TV channels in android

查看:110
本文介绍了直播电视频道的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我是新的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

这篇关于直播电视频道的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆