Windows Media Player 11 SDK Global AttributesĀ 

Windows Media Player SDK banner art

Previous Next

Global Attributes

Global attributes are attributes that provide easy access to certain player elements or objects from anywhere within a skin.

The player global attribute is a reference to the Player object, and is used to access the primary functionality of Windows Media Player. The following example uses player to begin digital media playback.

  

The theme global attribute is a reference to the THEME element. This is the proper way to access THEME attributes, rather than by specifying an ID within the THEME element. The following example uses theme to open a new view.

  

The view global attribute is a reference to the current VIEW. This can be used instead of the ID specified within the various VIEW elements. The following example uses view to close the current view.

  

The event global attribute is used to access ambient event attributes from within event handlers. The following example uses event to determine whether the ALT key is pressed when a button is clicked.

  

The playerApplication global attribute is a reference to the PlayerApplication object, and is used by skin files provided as custom user interfaces for remoted Player controls. The Player control can be embedded in remote mode only in C++ programs that implement the IWMPRemoteMediaServices interface. The following example uses playerApplication to switch to the full mode of the Player.

  

For more information, see Ambient Event Attributes.

See Also

Previous Next