Wowza Community

How to display an RTSP video on a web page?

We have an RTSP server streaming H.264 video and I have embeded VLC plugin on a page to play RTSP stream but there is no result, So i need help

<embed

id=“vlc”

name=“vlc”

type=“application/x-vlc-plugin”

pluginspage=“http://www.videolan.org” version=“VideoLAN.VLCPlugin.2”

width=440 height=280

autoplay=“yes”

enablejavascript=“true”

target=“rtsp://user:pass@host:1111/videoMain”

align=center />

var vlc = document.getElementById("vlc"); console.log(vlc.playlist) var options = new Array(":aspect-ratio=4:3", "--rtsp-tcp"); var id = vlc.playlist.add("rtsp://user:pass@host:1111/videoMain", "camera", options); vlc.playlist.playItem(id); vlc.playlist.play();

Hello there and welcome to the Wowza support forum.

Can you please provide more detail about what you are trying to do? Are you re-streaming from an IP camera?

How to re-stream video from an IP camera (RTSP/RTP re-streaming)

Did you set up your application for RTSP streaming?

How to set up an application for RTSP/RTP streaming

Have you tested the stream with the VLC player to isolate the problem with embedding in an HTML page? If you are having issues with the stream (unrelated to embedding in web page) see this guide:

How to troubleshoot RTSP/RTP playback

Here is a VLC wiki for embedding into HTML page

I hope this helps get you going.

Kind regards,

Salvadore