Skip to content


Embedding Windows Media Player

The section contains stuff related to the HTML/DHTML/XHTML for Web Page Development.

Embedding Windows Media Player

Postby Web Guru » November 11th, 2008, 11:44 am

This post describes how to embed Windows Media Player in HTML document to play music or video, and includes the required code in HTML and JavaScript.

Before to start, you should check the version of Windows Media Player installed on your computer. Version 6.4 is supported, but the latest version is recommended.

Embedding Windows Media Player
To embed an object in HTML document, the object class ID is required. The class ID for Windows Media Player 7, 9, 10 and 11 is clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6.

Insert the following code into your HTML document to embed Windows Media Player 7 and later:

Code: Select all
<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="True">
   <PARAM NAME="AutoStart" VALUE="True">
   <PARAM name="uiMode" value="none">
   <PARAM name="PlayCount" value="1">
</OBJECT>


In the URL parameter, you can specify a URL (for streaming) or a local file.

If you want to embed Windows Media Player 6.4 instead of the latest version, the class ID is clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95.
User avatar
Web Guru
 
Posts: 94
Joined: March 24th, 2008, 7:59 am
Location: Lahore, Pakistan


Re: Embedding Windows Media Player

Postby KingofKings » November 22nd, 2008, 5:27 pm

Thanks its work.

how to close visualization aur change it.Is it possible?
or open More User Interface.
KingofKings
 
Posts: 6
Joined: June 1st, 2008, 9:16 am


Return to Board index

Return to HTML / DHTML / XHTML

Who is online

Users browsing this forum: No registered users and 0 guests