Forum Moderators: not2easy
I was wondering since a a while how to allow Firefox users
to watch the streams with Windows Media player on my website.
I finally find a website where videos work quite well
with windows media player under Firefox (and without additional plugin).
Through reverse engineering -the webmaster was indeed coding its HTML code...- I've been able to understand the trick:
************************************************
<html>
<script language="JavaScript">
function plays(media){document.getElementById('players').innerHTML='<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'+'type="application/x-mplayer2" width="400" height="300" id="WMP" name="WMP"><param name="loop" value="true"><param name="displaySize" value="0"><param name="fileName" value="'+media+'"><param value="true" name="ShowStatusBar">'+'<embed id="WMP" style="FILTER: xray" name=RAOCXplayer src="'+media+'" loop="true" showstatusbar="1" showcontrols="1" displaySize="0" loop="1" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" width="400" height="310" type="application/x-mplayer2"></embed></object>'}
</script>
<body>
<div id=players>
</div></td>
<a href="#" onclick =plays("http://www.link to your media file")> just clik to launch the song</a>
</body>
</html>
***************************************************
Too many websites proposing videos do no work with Firefox...
Hope other people will use this script.
Bye.
PS: links are not allowed in the forum but you may
find a vivid example of this script on my homepage
(just click on the profile):
Videos with Windows media player are working in Firefox.