Reputation:
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.
Can anybody give me idea about how android works with live Streaming channels.
THanks in advance. Dimple
Upvotes: 5
Views: 9014
Reputation: 7087
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();
For more info, please see this: how to play video from url
Upvotes: 2