Compartir a través de


Purchase Integration for Type 2 Online Stores

[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.]

When Windows Media Player plays digital media content or the user chooses Find Album Info, the Player offers the user a link to buy the CD or DVD from which the content originated if such a link is available. When the user clicks the link, Windows Media Player 10 or later calls on the current music store to handle the purchase request. When this happens, the Player navigates to the first service task pane (in Windows Media Player 10) or the Online Stores tab (in Windows Media Player 11) and displays the webpage specified by the MediaPlayerURL attribute of the BuyCD element of the ServiceInfo document. (The MediaCenterURL and BrowserURL attributes are used in a similar manner to handle calls from Windows XP Media Center Edition 2004 and Windows XP Service Pack 2).

Windows Media Player appends a query string to the URL to provide information to the online store about the content the user chose to purchase. The query string includes attributes like Title, Album, and Artist, which the online store can use to determine the correct album to sell. The reference documentation for the BuyCD element provides the complete list of query string attributes and their descriptions.

Guidelines for the BuyCD Page

When creating your BuyCD webpage, use the following guidelines:

  • The page must clearly identify the online store providing the information. You can do this by prominently displaying your logo, for example.
  • The page must include a link to your company's privacy statement.
  • It is best to provide initial purchasing information without requiring the user to install programs or log in to your online store.

About Type 2 Online Stores

BuyCD Element