cortic
06-17-2003, 10:55 AM
Ok, first sorry if this belongs in the DOM forum, but I’m trying to find a client-side solution to this and would like to leave it open as possible.
I’m making a CD for a client, html (loaded in the default browser) some JavaScript and CSS *basically a website with no server-side* anyway there is a lot of multimedia in the form of avi and mpg video and audio so I’m using object and embed to put an *.asx file on the pages, the *.asx file just looks something like:
<ASX version = "3.0">
<ENTRY>
<REF HREF = "56a.avi" />
</ENTRY>
</ASX>
the elements on the page that call it up look like:
<div id="mov">
<OBJECT ID="MediaPlayer" style="position:absolute;" WIDTH=240 HEIGHT=230
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="56a.asx">
<PARAM NAME="ShowControls" VALUE="False">
<PARAM NAME="ShowStatusBar" VALUE="False">
<EMBED style="position:absolute; " TYPE="application/x-mplayer2" SRC="56a.asx" name="WinMedia" ShowStatusBar="false" ShowControls=0
NAME="MediaPlayer"
WIDTH=240
HEIGHT=230>
</EMBED>
</OBJECT>
</div>
fine, works, however – I need to change the 'playing file' without changing the page, I've never done anything like this before so I try accessing filename and src attributes and nothing, is there any way I can access the object and embed element and change the playing file? (obviously without using server-side as there’s no server lol)
I’m making a CD for a client, html (loaded in the default browser) some JavaScript and CSS *basically a website with no server-side* anyway there is a lot of multimedia in the form of avi and mpg video and audio so I’m using object and embed to put an *.asx file on the pages, the *.asx file just looks something like:
<ASX version = "3.0">
<ENTRY>
<REF HREF = "56a.avi" />
</ENTRY>
</ASX>
the elements on the page that call it up look like:
<div id="mov">
<OBJECT ID="MediaPlayer" style="position:absolute;" WIDTH=240 HEIGHT=230
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="56a.asx">
<PARAM NAME="ShowControls" VALUE="False">
<PARAM NAME="ShowStatusBar" VALUE="False">
<EMBED style="position:absolute; " TYPE="application/x-mplayer2" SRC="56a.asx" name="WinMedia" ShowStatusBar="false" ShowControls=0
NAME="MediaPlayer"
WIDTH=240
HEIGHT=230>
</EMBED>
</OBJECT>
</div>
fine, works, however – I need to change the 'playing file' without changing the page, I've never done anything like this before so I try accessing filename and src attributes and nothing, is there any way I can access the object and embed element and change the playing file? (obviously without using server-side as there’s no server lol)