简体   繁体   English

如何在不使用ActiveX的情况下在网页上显示RTSP流

[英]How to display RTSP stream on web page without using ActiveX

I'm looking for a way to display an RTSP stream without using an ActiveX like VLC or Quicktime. 我正在寻找一种无需使用ActiveX(如VLC或Quicktime)即可显示RTSP流的方法。 I need this because I want to display it in an Android or iOS web page and not openning their own player. 我需要这样做是因为我想在Android或iOS网页上显示它,而不要打开自己的播放器。

I'm open to all suggestions as it's something that needs to get done. 我愿意接受所有建议,因为这是需要完成的工作。

can you try this: 你可以尝试一下:

VideoView vd; 
vd = (VideoView) findViewById(R.id.videoView1);
vd.setVideoURI(Uri.parse(path));  
vd.requestFocus();
vd.start();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM