...

View Full Version : Embeeding and Control Windows Media Player with HTML



abah05
11-29-2009, 03:12 PM
Hi, I'm doing embedding Windows Media Player with the HTML
but I can not run the script through a different page.
The following script that I made:

file : player.html


<html>
<OBJECT id="VIDEO" width="640" height="480"
style="position:relatif; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">

<PARAM NAME="URL" VALUE="file_name.mpg">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="true">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM name="uiMode" value="Full">
<PARAM name="fullScreen" value="false">
<PARAM name="balance" value="0">
<PARAM name="volume" value="100">
<PARAM name="stretchToFit" value="true">
<PARAM name="PlayCount" value="1">
</OBJECT>

<br><br>

<input type=submit name=play1 value="New File" onClick=document.getElementById('VIDEO').URL="new_file.mpg";>
<input type=submit name=play2 value=Play onClick=document.getElementById('VIDEO').controls.play();>
<input type=submit name=play3 value=Pause onClick=document.getElementById('VIDEO').controls.Pause();>

</html>

above is the script for embbeding and scripts to perform the control in Windows Media Player, the script above work well on IE not on Mozzila Firefox (why??), then I save the file with the name player.html

The next script I tried to separate the Windows Media Player control into a different file, for example control.html

file : control.html


<html>

<input type=submit name=play1 value="New File" onClick=document.getElementById('VIDEO').URL="new_file.mpg";>
<input type=submit name=play2 value=Play onClick=document.getElementById('VIDEO').controls.play();>
<input type=submit name=play3 value=Pause onClick=document.getElementById('VIDEO').controls.Pause();>


</html>

but I can not control the files player.html, my question how do the control on different files (control.html to player.html )...???

for the help I thank you ....

abah05
11-30-2009, 05:04 PM
Please help me ... anyone who can help....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum