Windows Media Player 11 SDK External Object for Type 1 Online Stores 

Windows Media Player SDK banner art
PreviousNext

External Object for Type 1 Online Stores

Note   This section describes functionality designed for use by online stores. Use of this functionality outside the context of an online store is not supported.

The External object provides functionality to Web pages, provided by an online store, hosted in Windows Media Player.

The External object exposes the following properties for type 1 online stores.

Property Description
accountType Retrieves the service account type from the current online store.
appColorButtonHighlight Retrieves the current button highlight color for the Windows Media Player user interface.
appColorButtonHoverFace Retrieves the current button hover color for the Windows Media Player user interface.
appColorButtonShadow Retrieves the current button shadow color for the Windows Media Player user interface.
appColorDark Retrieves the current dark shaded color of the Windows Media Player user interface.
appColorLight Retrieves the current light shaded color of the Windows Media Player user interface.
appColorMedium Retrieves the current medium shaded color of the Windows Media Player user interface.
basketTitle Retrieves the title of the button that displays the basket menu in Windows Media Player.
filter Retrieves the search filter currently in use by Windows Media Player.
ignoreIEHistory Specifies whether Windows Media Player should ignore Internet Explorer history.
libraryLocationID Retrieves the identifier of a specific media item that is currently displayed in the Player's library view.
libraryLocationType Retrieves a library location constant that indicates type of the current library view in Windows Media Player.
pluginRunning Retrieves a value that indicates whether the plug-in is running.
selectedItemID Retrieves the identifier of the media item that is currently selected in Windows Media Player.
selectedItemType Retrieves the type of the media item that is currently selected in Windows Media Player.
task Retrieves the name of the current task pane.
templateBeingDisplayedInLocalLibrary Indicates whether the media item represented by the current discovery page is being displayed in the local library tree-view control.
userLoggedIn Retrieves a value indicating whether the user is signed in to the online store.
version Retrieves the current version of Windows Media Player.
viewParameters Retrieves parameters associated with the current view in Windows Media Player.

The External object exposes the following methods for type 1 online stores.

Method Description
addToBasket Adds media items to the basket in Windows Media Player.
attemptLogin Displays a dialog box so the user can attempt to sign in to the online store's service.
authenticate Reserved for future use.
buy Initiates the purchase of a set of media items.
cancelNavigate Informs Windows Media Player that it should not navigate when changeViewOnlineList is called.
changeView Changes the view in Windows Media Player.
changeViewOnlineList Changes the view in Windows Media Player to display a list generated dynamically by the online store.
download Initiates the download of a set of media items.
play Instructs Windows Media Player to play a set of media items.
saveCurrentViewToLibrary Reserved for future use.
sendMessage Sends a message to the online store's plug-in.
showPopup Instructs the online store's plug-in to display a dialog box.

The External object exposes the following events for type 1 online stores.

Event Description
OnChangeViewError Occurs when a call to the External.ChangeView method results in an error.
OnChangeViewOnlineListError Occurs when a call to the External.ChangeViewOnlineList method results in an error.
OnColorChange Occurs when the color of the Windows Media Player user interface changes.
OnLoginChange Occurs when the user's sign-in status changes.
OnSendMessageComplete Occurs when the online store has finished processing a message.
OnViewChange Occurs when the view changes in Windows Media Player.

See Also

PreviousNext
Show: