Embedding VLC mediaplayer as a multicast receiver in your browser
Using Windows Media Player as the mediaplayer of your choice is tricky at best, if you are trying to access a multicast stream. I have done some research and found that it is very difficult to receive a multicast stream which was not generated by a Windows Media server. So I had to revert to VLC mediaplayer.
The stream itself is sourced by VLC as well, so this made some sense. First of all, you need to install the VLC mediaplayer plugin. The browser of my choice was Firefox 6 and it was easy to install. You do have to explicitly enable it when installing VLC. Also, I found that using version 1.1.9 gave the best results. Versions 1.1.10 and 1.1.11 have some nasty bugs in them.
To embed the player, use the following HTML code:
<embed type="application/x-vlc-plugin" id="vlc" name="vlc" autoplay="yes"
loop="yes" width="100%" height="1000" src="udp://@225.0.0.1:1234" />
<SCRIPT language="javascript"'>
var vlc = document.getElementById("vlc");
</script>
The reason for the javascript is to enable controls to function, ie full-screen etc.