Windows Media Player 11 SDK External.changeViewOnlineList 

Windows Media Player SDK banner art

Previous Next

External.changeViewOnlineList

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

The changeViewOnlineList method changes the view in Windows Media Player to display a list generated dynamically by the online store.

Syntax

  window.external.changeViewOnlineList(

    LibraryLocationType,
  LibraryLocationID,
  Params,
  FriendlyName,
  ListType,
  ViewMode

  )

Parameters

LibraryLocationType

A library location constant that specifies the type of the new library view. For example, the constant CPGenreID specifies that the new view will show a particular genre.

LibraryLocationID

String containing theID of the specific item to show in the new view. For example, if LibraryLocationType is CPGenreID, then this parameter specifies the ID of the genre to show in the new view.

Params

String containing parameters that the online store wants to associate with the new view. These parameters are not interpreted by Windows Media Player. They are created by the online store and have meaning only to the online store.

FriendlyName

String containing a friendly name, to be displayed by Windows Media Player, for the new view.

ListType

A library location constant that specifies the type of the items in the dynamically generated list. For example, if LibraryLocationID is the name of a genre, and this parameter is CPTrackID, then the new view will show a list of tracks that belong to that genre.

ViewMode

String containing the mode of the new view. The caller must set this parameter to one of the following values:

ViewModeReport

ViewModeDetails

ViewModeIcon

ViewModeTile

ViewModeOrderedList

Requirements

Version: Windows Media Player 11.

Library: Use wmp.dll.

See Also

Previous Next