Hi everyone,
i'm trying to embed a video stream into an html file. I found a way that works using VLC plugin and Javascript that looks like this:
<embed type="application/x-vlc-plugin"
name="102"
autoplay="yes" loop="yes" width=100% height="505"
target="rtsp://root:1234@10.0.50.101/axis-media/media.amp" />
forget about "root:1234" which is just a way to login into the streaming webcam without a prompt. This solution works.
But the thing is i get 2-3seconds delay while watching. I'm using an RTSP H264 stream.
So i googled a lot to find a way to reduce real-time delay and found this solution:
<script>
var vlc = document.getElementById("vlc");
vlc.playlist.add("rtsp://root:1234@10.0.50.101/axis-media/media.amp", "live",
":network-caching=150");
vlc.playlist.play();
</script>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org"
version="VideoLAN.VLCPlugin.2"
width="640"
height="480"
id="vlc"
</embed>
but what i see is just an istance of a video player and it's all black like if the video stream is not on.
Do you have any suggestion? where am i wrong?
cheers!