Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Embeeding and Control Windows Media Player with HTML

    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

    Code:
    <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

    Code:
    <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 ....

  • #2
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please help me ... anyone who can help....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •