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

こ雲淡風輕ζ 提交于 2019-12-23 10:44:31

问题


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.


回答1:


RTSP is a protocol on the same level as HTTP. Its impossible to do RTSP via HTTP.

The HTML5 video tag could support RTSP but no browser implements it.

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.

I think your best alternative would be using either HTTP streaming with the video tag or WebRTC.



来源:https://stackoverflow.com/questions/22831917/how-to-view-an-rtsp-stream-using-html5-or-javascript-without-using-plugins-like

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!