Tuesday, September 19, 2006

Add Windows media player to a HTML page

This piece of HTML code adds a Windows media player into the HTML page. The versions of 7,9 and 10 of windows media player will work without any problem. The following code has some parameters.

Useful Parameters:
autoStart=true;
baseURL (Specifies the base URL used for relative path resolution with URL script commands that are embedded in media items.)
currentPosition (default=0; Specifies the current position in the media item in seconds.)
enabled=false (Specifies whether the Windows Media Player control is enabled.)
URL (Specifies the name of the media item to play.)
uiMode (Specifies which controls are shown in the user interface. Possible values: invisible, none, mini, full.)

<object id="VIDEO" width="320" height="240" 
style="position:absolute; left:0;top:0;"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">

<param name="URL" value="your file or url"/>
<param name="SendPlayStateChangeEvents" value="False"/>
<param name="AutoStart" value="True"/>
<param name="uiMode" value="none"/>
<param name="PlayCount" value="9999"/>
<param name="Volume" value="9999"/>
</object>

<object id="VIDEO" width="320" height="240"
style="position:absolute; left:0;top:0;"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
type="application/x-oleobject">

<param name="URL" value="your file or url"/>
<param name="SendPlayStateChangeEvents" value="False"/>
<param name="AutoStart" value="True"/>
<param name="uiMode" value="none"/>
<param name="PlayCount" value="9999"/>
<param name="Volume" value="9999"/>
</object>
Get more information
Can't find what you're looking for? Try Google Search!
Google
 
Web eshwar123.blogspot.com

Comments on "Add Windows media player to a HTML page"