The following code below does not play it gives me an error:
HTML PAGE
[CODE]
<object classid=”clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95″ height=”180″ width=”240″ border=0 id=”WMPlay” name=”WMPlay” standby=”Loading Microsoft® Windows® Media Player components…” type=”application/x-oleobject”>
<PARAM NAME=”ShowControls” VALUE=”0″>
<PARAM NAME=”ShowDisplay” VALUE=”0″>
<PARAM NAME=”ShowStatusBar” VALUE=”0″>
<PARAM name=”FileName” value=””>
<PARAM name=”EventNumber” value=”1″>
</object>
Javascript Function
[CODE]
function videoStart(){
if (bWin32IE == true) {
WMPlay.FileName = videoFile;
WMPlay.play();
} else {
document.WMPlay.FileName = videoFile;
alert(document.WMPlay.FileName);
document.WMPlay.Play();
}
}
Error: document.getElementById(“WMPlay”).Play is not a function
Any ideas?
Thanks,
Josh