Share via


Embedding the Windows Media Player Control

Windows Media Player SDK banner art

The HTML OBJECT tag is used to embed ActiveX objects into an HTML file. The following code shows how to use the OBJECT tag to insert the Windows Media Player control.

<OBJECT ID="MediaPlayer1" WIDTH=320 HEIGHT=240
  CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
  STANDBY="Loading Windows Media Player components..."
  TYPE="application/x-oleobject">
</OBJECT>

The following OBJECT tag attributes are required.

  • ID: The name used to reference this instance of the control in scripts.
  • CLSID: The Class Identifier (CLSID) of the Windows Media Player control, which is used by the Web browser to create the ActiveX object on the page.