Sample HTML to embed UDP stream
Posted: 04 Feb 2016 19:24
I'm a newb to utilizing the VLC plug-in to embed a a video stream within a web page so I'm trying to get sample code that will allow me to embed a multicast UDP stream within a web page for both Firefox and IE.
The multicast UDP network stream "udp://@239.20.0.21:5000" plays successfully in the windows VLC application although I have to set Deinterlace=Auto to display correctly.
I did a forum search and modified some sample code to create the following that works in Firefox but not IE (VLC player shows in page but does not play stream):
How do I modify this code for the following:
1. Support both IE and Firefox browsers
2. Set play Audio Volume to a specific level, e.g. 25%
3. Embeds/activates appropriate plugin or ActiveX control (depending on client browser) without having to install full version of VLC on client workstation.
Thanks.
The multicast UDP network stream "udp://@239.20.0.21:5000" plays successfully in the windows VLC application although I have to set Deinterlace=Auto to display correctly.
I did a forum search and modified some sample code to create the following that works in Firefox but not IE (VLC player shows in page but does not play stream):
Code: Select all
<html>
<title>VLC plugin test page</title>
<body>
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="1280"
height="720"
id="vlc"
</embed>
<script>
var vlc = document.getElementById("vlc");
vlc.playlist.add("udp://@239.20.0.21:5000", "CNN");
vlc.playlist.play();
vlc.video.deinterlace.enable("blend");
</script>
</body>
1. Support both IE and Firefox browsers
2. Set play Audio Volume to a specific level, e.g. 25%
3. Embeds/activates appropriate plugin or ActiveX control (depending on client browser) without having to install full version of VLC on client workstation.
Thanks.