Export (0) Print
Expand All

Device Extensions for Playlist Object Preferences

As part of the synchronization process, Windows Media Player 10 or later copies playlist objects to MTP-enabled portable devices. Windows Media Player 11 introduces new functionality that enables portable devices to limit the types of playlist objects copied. (Windows Media Player always synchronizes playlist content as specified by the synchronization rules. This feature affects only the synchronization of playlist objects.) Windows Media Player copies three types of playlist objects from the computer to the device:

  • Ordinary playlists. These are playlists that are visible in the Library feature of Windows Media Player. These include playlists created by the user, playlists added to the library by online stores, and sample playlists installed with the Player. Windows Media Player copies only these playlists to the device when the user has selected them for synchronization.
  • Stock sync playlists. These are special playlists that are installed with Windows Media Player and used only for synchronization. These playlists are visible only in the Windows Media Player Device Setup Wizard.
  • Implicitly created playlists. These playlists are created when the user drags and drops a category folder, such as Artist or Album, onto the pane that lists the items to be synchronized.

The header file named wmpdevices.h, which has been updated for this release, defines the structures and constants needed to support Windows Media Player device extensions.

For a device to be recognized as supporting playlist object preferences through the Windows Media Player MTP device extension set, it must include the following information in the DeviceInfo dataset. (For more information about this dataset, see section 4.6.1 of the MTP specification.)

Dataset field Field order Data type Value
VendorExtensionID2UINT320x00000006
VendorExtensionVersion3UINT160x0064 (100)
VendorExtensionDesc4String"microsoft.com/WMPPD: 11.0"

 

The following table provides details about the MTP operation for playlist object preferences.

Item Description
Operation Code0x9203
Operation Parameter 10
Operation Parameter 20
Operation Parameter 30
Operation Parameter 40
Operation Parameter 50
DataThe device returns a value in Response Parameter 1 to indicate playlist object synchronization preference.
Data DirectionR->I
Response Code OptionsMTP_RESPONSE_OK (0x2001) or valid error response code.
Response Parameter 10 or 1. A value of 0 indicates that Windows Media Player must synchronize only ordinary playlist objects. A value of 1 indicates that that Windows Media Player must synchronize ordinary playlist objects, stock, and implicitly-created sync playlist objects, which is the default behavior.
Response Parameter 20
Response Parameter 30
Response Parameter 40
Response Parameter 50

 

Remarks

Implementing this feature is optional for portable devices. Windows Media Player synchronizes ordinary playlist objects, stock sync playlist objects, and implicitly-created playlist objects by default.

Related topics

Windows Media Player

 

 

Community Additions

ADD
Show:
© 2014 Microsoft