Player Object Model for Scripting Languages
[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.]
ActiveX uses the concept of objects to contain programming functionality. Windows Media Player uses several objects to divide up the functionality the control provides. The root object is the Player object, and the other objects are attached to the Player object through specific properties.
The following diagram shows how the Windows Media Player 11 ActiveX control object model works for scripting languages.
In C++, and sometimes in .NET languages, objects are represented by COM interfaces. In the Windows Media Player object model, COM interface names are the same as the object name, but are prefixed with "IWMP". For example, the Network object is exposed through the IWMPNetwork interface.
The following sections provide conceptual overviews for each object:
- About the Cdrom and CdromCollection Objects
- About the ClosedCaption Object
- About the Controls Object
- About the DVD Object
- About the Error and ErrorItem Objects
- About the MediaCollection and Media Objects
- About the MetadataPicture Object
- About the MetadataText Object
- About the Network Object
- About the Player Object
- About the PlayerApplication Object
- About the Playlist, PlaylistCollection, and PlaylistArray Objects
- About the Query Object
- About the Settings Object
- About the StringCollection Object
Additional functionality is available through certain COM interfaces. Whether you can access these interfaces may depend on the language you use for programming and other factors, such as the mode used to create the instance of the Windows Media Player control. For a complete list of COM interfaces exposed by the Windows Media Player control, see the Object Model Reference for C++.