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

Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top