homepage Welcome to WebmasterWorld Guest from 54.167.41.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
Forum Library, Charter, Moderators: not2easy

Site Graphics and Multimedia Design Forum

    
Windows Media Player and Firefox (Mozilla etc)
Windows Media Player and Firefox
kikiat




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

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




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

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]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Site Graphics and Multimedia Design
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved