Welcome to WebmasterWorld Guest from 54.226.32.234

Forum Moderators: not2easy

Message Too Old, No Replies

Windows Media Player and Firefox (Mozilla etc)

Windows Media Player and Firefox

     

kikiat

6:32 pm on Feb 3, 2007 (gmt 0)

5+ Year Member



Hello all,

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.

Turbulence

8:59 am on Feb 6, 2007 (gmt 0)

5+ Year Member



Excellent idea and I guess - an adorable result.

Keep up the good work :)

[edited by: limbo at 3:51 pm (utc) on Feb. 7, 2007]
[edit reason] removed italics [/edit]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month