RTSP solution for JavaScript/HTML5

user3722952 picture user3722952 · Jun 26, 2014 · Viewed 44.9k times · Source

I am developing a Smart TV application and streaming live video from an IP Camera is a huge portion of the functionality.

The camera's manual states that if it is set to stream MPEG-4 or H.264 that HTTP is not supported; only RTSP/RTP is.

The alternative (via HTTP) is Motion JPEG, which I would like to avoid as much as possible (terrible framerate on the TV).

Is there any JavaScript/HTML5 solution/wrapper for RTSP? The TV cannot run a Java applet or anything of the sort, and by default, the browser does not support RTSP.

Thanks!

Answer

jcaron picture jcaron · Jun 26, 2014

There doesn't seem to be any pure JS or HTML5 solution for this. You'll probably need to go through a server that will transcode the video.

See also: https://stackoverflow.com/a/4900156/3527940