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

StackOverflow https://stackoverflow.com/questions/22831917

質問

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 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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top