0

Hey I would like to know if I can stream an rtsp video on a web page.

If so which third party library can do this work, or what are the available solutions in this current state.

I know that I can run rtsp video on vlc, but can I run vlc on a web page?

I will be glad for any help. Thanks in advance.

Brk
  • 1,247
  • 2
  • 23
  • 55
  • This link may help you https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Live_streaming_web_audio_and_video – Anil Samal Jan 05 '17 at 12:51
  • Take a look at the answer https://stackoverflow.com/questions/2245040/how-can-i-display-an-rtsp-video-stream-in-a-web-page#6610007 – cringe Jan 05 '17 at 12:51

1 Answers1

1

There is a web plugin from VLC. From the documentation:

To embed the plugin into a webpage, use the following template:

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
  width="100" height="100" target="rtsp://yourip" />

If you are using vlc version < 2.2.0 with Internet Explorer, use instead the following <object> template:

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  width="100" height="100" target="rtsp://yourip" ></object>

For the declaration of tag attributes, use the tag . Here an example:

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"
  width="100" height="100" target="rtsp://yourip" >
    <param name="autostart" value="true" />
    <param name="allowfullscreen" value="false" />
</object>

For compatibility with the mozilla plugin, you can combine both tags:

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" id="vlc">
    <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" name="vlc" />
</object>
cringe
  • 13,401
  • 15
  • 69
  • 102
  • I have add the following embeded code but I get that this plugin isn't supported, can you tell me how to overcome this problem? – Brk Jan 05 '17 at 14:05
  • no way to overcome it. VLC plugin is a rather rare used thing and more for developers. Use some server like flussonic or ffmpeg + nginx to repack rtsp transport to something like hls or dash. – Max Lapshin Jan 08 '17 at 06:12
  • "Support for NPAPI plugins was removed from all modern web browsers, so VLC's plugin is no longer maintained". – Lucas May 02 '20 at 11:33