5

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
  • 2
    answers to that question do no discuss about solutions using JavaScript in detail. I understand that I can not use the HTML5 video tag, but I want to know whether this can be done using JS or any other web technology. Commented Apr 3, 2014 at 12:22

1 Answer 1

4

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Impossible? AFAIK RTSP can be tunneled over HTTP and the RTSP is embedded within the HTTP body as base64 encoded data...
"RTSP over HTTP" wouldn't be "RTSP" but "RTSP over HTTP". Like I said, you can also tunnel it over Websockets which would be more effective then HTTP, but either way, it would still be quite inefficient.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.