请求它如此重要,任何人都可以帮助我传播这个网址:
我试过这个:http://new.islamahmadiyya.net/live-no-links.html
和rtsp相同但是:rtsp://mtaintl.mpl.miisolutions.net:1935 / mtaintl-live-1 / definst /mp4:MTA3_300k.stream
我绑定了谷歌中的每个代码,但相同的结果不起作用。
任何人都可以知道网址是否错误? ,我可以调用频道并告诉他们改变格式 再次请求,我依靠stackoverflowUri stream = Uri.parse("rtsp://mtaintl.mpl.miisolutions.net:1935/mtaintl-live-1/_definst_/mp4:MTA3_300k.stream");
Intent videointent = new Intent(Intent.ACTION_VIEW,stream);
startActivity(videointent);
第二种方式:
String LINK = "rtsp://mtaintl.mpl.miisolutions.net:1935/mtaintl-live-1/_definst_/mp4:MTA3_300k.stream";
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();*/
另一个:
vv = (VideoView) this.findViewById(R.id.video);
//Uri videoUri =
//Uri.parse("rtsp://mtaintl.mpl.miisolutions.net:1935/mtaintl-live-1/_definst_/mp4:MTA3_300k.stream");
//vv.setMediaController(new MediaController(this));
//vv.setVideoURI(videoUri);
//vv.start();
MediaController mc = new MediaController(this);
vv.setMediaController(mc);
//Set the path of Video or URI
vv.setVideoURI(Uri.parse("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"));
//
//Set the focus
vv.requestFocus();
和这个
String LINK = "rtsp://mtaintl.mpl.miisolutions.net:1935/mtaintl-live-1/_definst_/mp4:MTA3_300k.stream";
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();