R
Ruppen Pascal
I have a problem. My function is this
function loadMovie(value){
document.getElementById("VideoID").innerHTML="<OBJECT ID=\"video\"
width=\"240\" height=\"180\"
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=\"AutoStart\" VALUE=\"True\">"+
"<PARAM NAME=\"FileName\"
VALUE=\"http://winmedia.com/clip_"+value+".wmv\">"+
"<PARAM NAME=\"ShowControls\" VALUE=\"False\">"+
"<PARAM NAME=\"ShowStatusBar\" VALUE=\"False\">"+
"<PARAM NAME=\"AutoSize\" VALUE=\"False\">"+
"<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"True\">"+
"<EMBED TYPE=\"application/x-mplayer2\"
SRC=\"http://winmedia.com/clip_"+value+".wmv\" WIDTH=\"240\" HEIGHT=\"180\"
ShowControls=0>"+
"</EMBED> </OBJECT>";
}
The problem is now that the MediaPlayer logo is showing but the movie don't
start??? If I use
document.write("<OBJECT ID=\"video\" width=\"240\...)
that's no problem. The movie run. But I will integrate the movie in my page
and then I needed document.getElementById("VideoID")...
You have solutions
Thank and regards
function loadMovie(value){
document.getElementById("VideoID").innerHTML="<OBJECT ID=\"video\"
width=\"240\" height=\"180\"
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=\"AutoStart\" VALUE=\"True\">"+
"<PARAM NAME=\"FileName\"
VALUE=\"http://winmedia.com/clip_"+value+".wmv\">"+
"<PARAM NAME=\"ShowControls\" VALUE=\"False\">"+
"<PARAM NAME=\"ShowStatusBar\" VALUE=\"False\">"+
"<PARAM NAME=\"AutoSize\" VALUE=\"False\">"+
"<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"True\">"+
"<EMBED TYPE=\"application/x-mplayer2\"
SRC=\"http://winmedia.com/clip_"+value+".wmv\" WIDTH=\"240\" HEIGHT=\"180\"
ShowControls=0>"+
"</EMBED> </OBJECT>";
}
The problem is now that the MediaPlayer logo is showing but the movie don't
start??? If I use
document.write("<OBJECT ID=\"video\" width=\"240\...)
that's no problem. The movie run. But I will integrate the movie in my page
and then I needed document.getElementById("VideoID")...
You have solutions
Thank and regards