Share via


Media MDB Implementation (Compact 7)

3/12/2014

Media MDB storage consists of the Windows Embedded Compact 7 Media Library and an MTP Media Library plug-in that integrates the MTP responder stack with the Media Library.

For more information about the Media Library, see Media Library.

The MTP Media Library plug-in is a type of "glue layer" that acts as an interface between the MTP responder stack and the Media Library. The MTP Media Library plug-in provides the following functionality:

  • Translates MTP initiator object handles to and from the object handle format of the Media Library.
  • Converts playlists from the MTP initiator to work with the paths of media files located on the device.
  • Converts representative sample formats used by MTP initiator to thumbnail file formats used by the Media Library, and vice versa.
  • Synchronizes media files to device storage and tracks media file creation, deletion, and modification on behalf of the MTP initiator and the Media Library.
  • Broadcasts events from the Media Library to the MTP responder stack, such as the creation of a playlist or the addition of a new photo image.

The MTP Media Library plug-in converts incoming 32-bit MTP object handles into an internal 64-bit format that the Media Library uses to manage media files; object handle conversion functionality maintains this association in a table. The Media Library plug-in also converts the internal 64-bit Media Library object format into outgoing 32-bit MTP object handles. MTP Responder effectively uses this table to translate object handles between the format that the MTP initiator uses and the format that the Media Library uses.

For information about the source code location for the MTP Media Library plug-in, see Media MDB Optimization.

See Also

Concepts

MTP Storage
Media MDB MTP Operations
Media MDB Object Formats
Media MDB Object Properties
Media MDB Optimization