问题描述
我们的想法是开发一个跨平台的独立应用程序,可以播放视频,通过RTSP流式传输,使用HTML5或JavaScript或任何其他网络技术。
The idea is to develop a cross-platform, standalone application that could play a video, streamed over RTSP, using HTML5 or JavaScript or any other web technology.
推荐答案
RTSP是与HTTP相同级别的协议。无法通过HTTP进行RTSP。
RTSP is a protocol on the same level as HTTP. Its impossible to do RTSP via HTTP.
HTML5视频标签可以支持RTSP但没有浏览器实现它。
The HTML5 video tag could support RTSP but no browser implements it.
可以使用websockets创建RTSP代理,但不再是真正的rtsp。这意味着,所有的demuxing和协议都必须在JS中实现,效率非常低。
It may be possible to create an RTSP proxy using websockets but that wouldn't be true rtsp any more. And it would mean, all the demuxing and protocol stuff had to be implemented in JS which would be quite inefficient.
我认为你最好的选择是使用HTTP流式传输视频标签或WebRTC。
I think your best alternative would be using either HTTP streaming with the video tag or WebRTC.
这篇关于如何使用HTML5或JavaScript查看RTSP流,而不使用Real Player插件上的VLC插件等插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!