I'm trying to run live channels using vlc on my webpage using a multicast address/udp but can't get it to work properly
This code in the video display div works:
var uri = "udp://@184.108.40.206:1234"
var VLCPlayerObject = '<object id="vlc" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" width=720px height=720px classid="CLSID:9BE31822-FDAD-461B-AD51-BE1D1C159921" events="True"><PARAM NAME="ShowDisplay" VALUE="True"><PARAM NAME="AutoPlay" VALUE="True"><PARAM NAME="Src" VALUE=' + uri + '><PARAM NAME="fullscreen" VALUE="True"></object>\n';
However I need the user to be able to switch channels on the same page and if I turn the above code into a function which is called when the user presses a button that passes the right udp number the vlc video replaces the entire page.
So I resorted to use the following code (runs in its own js file):