Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 258
Naren Avatar asked Oct 02 '22 03:10

Naren


1 Answers

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.

like image 122
Mathias Avatar answered Oct 18 '22 09:10

Mathias