Compartilhar via


Using the Windows Media Player Control in a Web Page

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Embedding the Windows Media Player control in a webpage lets you completely customize the way the user interacts with the control. You can use the interface provided by the control, or you can hide it and display your own user interface. You can specify multiple Windows Media Player control properties at the point where you embed the control, or you can set Player properties and call Player methods in script code.

The following sections describe the basics of embedding the control in a webpage.

Section Description
Hiding the Windows Media Player Control Describes the options for hiding the Windows Media Player control when you want to provide your own user interface.
PARAM Elements in an OBJECT Element Describes how to initialize the Windows Media Player control when you embed it.
Simple Example of Scripting in a Web Page Describes a simple, but complete, example of an embedded Player control with a custom user interface.
Using the Windows Media Player Control with Firefox Describes how to embed the Windows Media Player control in a webpage so that it will be displayed correctly by a Firefox browser.
Using Windows Media Player with Netscape 7.1 Describes how to use the Windows Media Player control with Netscape 7.1 and other Gecko-based Web browsers.

 

Note

The Windows Media Player 10 Mobile control contains functionality based on a subset of the functionality provided in the desktop version of the Windows Media Player control. Therefore, it can be embedded in a Pocket Internet Explorer webpage the same way the desktop control is embedded in an Internet Explorer webpage. To find out whether a particular method, property, or event is supported for the Windows Media Player 10 Mobile control, see Object Model Reference for Scripting.

 

Player Control Guide