PDA

View Full Version : Embed Windows Media in Netscape 7


Chris Helson
9th June 2003, 14:10
Hello
I am making an HTML based CD Rom to show text, images, info.. but primarily videos, 35 of them. Have opted for Windows Media encoded in V7. The CD Autoruns to full screen and I need to embed the .wmv's into the pages. I am using StuartV's script posted here (thankyou Stuart). It works really well in Internet Explorer but in Netscape 7 the page jumps back to the previous page, and if no previous page existed the screen and controlers are there but no video plays. My netscape has Java and embeded .asx files play from streaming sites fine. The script I have been using is:
<OBJECT Width=240
Height=220
ID="MediaPlayer"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">

<PARAM NAME="FileName" VALUE="myfile.wmv">
<PARAM NAME="AnimationatStart" VALUE="true">
<PARAM NAME="TransparentatStart" VALUE="true">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM NAME="ShowControls" VALUE="1">

<Embed TYPE="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
SRC="myfile.wmv"
Name=MediaPlayer
ShowControls=1
Width=240
Height=220
</embed>
</OBJECT>

The SRC and filename Value require the full address, but I am still getting the same problem using the full address, for example E:\myfile.wmv. Also if I am to put these files onto the cd each computer will likely assign a different letter to the drive. Do I need to create an asx or asf file? and if so how? Any suggestions would be really welcome.
Thanks Chris

Chris Helson
9th June 2003, 22:16
...figured out part of it, have save the .wmv file as a .asf
which allows the file to play in Netscape 7 with the SRC and filename Value given an absolute path, for example; SRC=E:\myfile.asf which is not a problem if you are using a browser as a web browser and providing a http:// path, however the CD drive has different letters mapped to it on different computers. With a relative path it only works in IE. Any suggestions as to possibly a path that will identify the CD drive without using a mapped letter or a javascript that will identify the drive letter and asign it as a variable would be welcome.


[This message has been edited by Chris Helson (edited 10 June 2003).]