Windows Media : Simple Embedding

Description: Goal- Embed the Windows Media Player in Microsoft Internet Explorer (IE). This sample describes how to put the Media Player directly into a Web page for IE.

ITPro Today

February 18, 2002

2 Min Read
ITPro Today logo

Description: Goal- Embed the Windows Media Player in Microsoft Internet Explorer (IE). This sample describes how to put the Media Player directly into a Web page for IE.

More Details

The Windows Media Player installs as both a stand-alone application and as an ActiveX control. The stand-alone application allows us to play content in the Media Player as we did with our basic and advanced ASX files. Since the Media Player installs an ActiveX component as well, we're able to put the Media Player directly into a Web page, using the ActiveX architecture.

Code to Include

We'll start with our generic cross-browser code embedding code. This code will instantiate the Media Player ActiveX control for browsers which support ActiveX:

In the code above, we're using the

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like