实时视频流如何在Android中运行?

时间:2011-05-03 04:38:54

标签: android video-streaming

直播视频流如何在Android中运行?

1 个答案:

答案 0 :(得分:0)

虽然我没有尝试这个但是根据网络它可以工作

VideoView videoView = (VideoView) findViewById(R.id.surface_view);
MediaController mc = new MediaController(this);
mc.setAnchorView(videoView);
mc.setMediaPlayer(videoView);
Uri video = Uri.parse(URL);
videoView.setMediaController(mc);
videoView.setVideoURI(video);
videoView.start();