working with embedded video

G

Gina Beisel

We are trying to create a page that allows the user to choose a video
to play. A video does play as they load the page but we would like it
if they could then pick a new video from a list. This is the code so
far and we cannot figure out why it does not work. Any ideas?

<object width="346" height="247"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
id="mediaplayer1" >
<param name="Filename" value="media/intern.asx">
<param name="AutoStart" value="True">
<param name="ShowControls" value="False">
<param name="ShowStatusBar" value="False">
<param name="ShowDisplay" value="False">
<param name="AutoRewind" value="True">
<script language="javascript">
function changeSrc(value) {
document.write("<PARAM NAME='Filename'
VALUE="+value+">"+"<br>"+"<EMBED SRC="+value+" ");
}
</script>
<embed
type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"
width="346" height="247" src="media/intern.asx"
autostart="True"
showcontrols="False"
showstatusbar="False"
showdisplay="False"
autorewind="True"> </embed> </object>

<input type="button" value="AGCO"
onClick="changeSrc('media/neal.asx')">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top