Windows Media Player SDK banner art
PreviousNext

Player Object Model

ActiveX uses the concept of objects to contain programming functionality. Windows Media Player uses several objects to divide up the work that the control does. 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 ActiveX control model works:

Player---------Settings(by Settings property of Player)
       |
       ------Controls(by Controls property of Player)
       |
       ------Network(by Network property of Player)
       |
       ------CDRomCollection (by the CDRomCollection property of Player)
       |     |
       |     ------CDRom(by Item property of CDRomCollection)
       |
       ------PlaylistCollection (by PlaylistCollection property of Player)
       |     |
       |     ------Playlist(by Item property of PlaylistCollection)
       |
       ------MediaCollection(by MediaCollection property of Player)
       |     |
       |     ------Media(by Item attribute of MediaCollection)
       |     |
       |     ------StringCollection(by GetAttributeStringCollection property of MediaCollection)
       |
       ------Error(by Error attribute of Player)
       |     |
       |     ------ErrorItem(by Item property of Error)
       |
       ------ClosedCaption(by ClosedCaption attribute of Player)

Note that it is also possible to access a current object directly. For example, you can get the current media object by using the currentMedia property of Player.

The following properties can be used to access current objects:

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.