简体   繁体   English

如何使用HTML5或JavaScript查看RTSP流,而不使用Real Player插件上的VLC插件等插件?

[英]How to view an RTSP stream using HTML5 or JavaScript, without using plugins like VLC plugin on Real Player plugin?

我们的想法是开发一个跨平台的独立应用程序,可以播放视频,通过RTSP流式传输,使用HTML5或JavaScript或任何其他Web技术。

RTSP is a protocol on the same level as HTTP. RTSP是与HTTP相同级别的协议。 Its impossible to do RTSP via HTTP. 无法通过HTTP进行RTSP。

The HTML5 video tag could support RTSP but no browser implements it. HTML5视频标签可以支持RTSP,但没有浏览器实现它。

It may be possible to create an RTSP proxy using websockets but that wouldn't be true rtsp any more. 可以使用websockets创建RTSP代理,但不再是真正的rtsp。 And it would mean, all the demuxing and protocol stuff had to be implemented in JS which would be quite inefficient. 这意味着,所有的demuxing和协议都必须在JS中实现,效率非常低。

I think your best alternative would be using either HTTP streaming with the video tag or WebRTC. 我认为您最好的替代方案是使用带有视频标签的HTTP流媒体或WebRTC。

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

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