I am trying to embed a windows media player on one of my clients websites to play one of her video's. It works fine in IE but in Mozilla it displays nothing.
Here is the code I used:
<OBJECT ID="mPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-
0080c74c7e95" TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="my movie.wmv">
<PARAM NAME="ShowControls" VALUE="TRUE"> </OBJECT>
So I went and used a different script:
<SCRIPT LANGUAGE="JavaScript">
var WMP7;
if ( navigator.appName != "Netscape" ){
WMP7 = new ActiveXObject('WMPlayer.OCX');
}
// Windows Media Player 7 Code
if ( WMP7 )
{
document.write ('<OBJECT ID=MediaPlayer ');
document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6');
document.write (' standby="Loading Microsoft Windows Media Player components..."');
document.write (' TYPE="application/x-oleobject" width="300" height="290">');
document.write ('<PARAM NAME="url" VALUE="http://www.mysite.com/my video.wmv">');
document.write ('<PARAM NAME="AutoStart" VALUE="true">');
document.write ('<PARAM NAME="ShowControls" VALUE="1">');
document.write ('<PARAM NAME="uiMode" VALUE="mini">');
document.write ('</OBJECT>');
}
// Windows Media Player 6.4 Code
else
{
//IE Code
document.write ('<OBJECT ID=MediaPlayer ');
document.write ('CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 ');
document.write ('CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 ');
document.write ('standby="Loading Microsoft Windows Media Player components..." ');
document.write ('TYPE="application/x-oleobject" width="300" height="290">');
document.write ('<PARAM NAME="FileName" VALUE="http://www.mysite.com/my video.wmv">');
document.write ('<PARAM NAME="AutoStart" VALUE="true">');
document.write ('<PARAM NAME="ShowControls" VALUE="1">');
//Netscape code
document.write (' <Embed type="application/x-mplayer2"');
document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"');
document.write (' filename="http://www.mysite.com/my video.wmv"');
document.write (' src="http://ncnetshow/station1.asx"');
document.write (' Name=MediaPlayer');
document.write (' ShowControls=1');
document.write (' ShowDisplay=1');
document.write (' ShowStatusBar=1');
document.write (' width=290');
document.write (' height=320>');
document.write (' </embed>');
document.write ('</OBJECT>');
}
</SCRIPT>
This now works fine, except if you do not have the Java plugin.
Can anybody help me with this?
Ciao, LL
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0


3.0 
