Content Containers

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

Windows Media Player uses content containers to represent digital media content in a subscription download or purchase transaction. A content container is represented by the IWMPContentContainer interface. A content container might contain a list of related content, such as an album, or a set of unrelated content items, or tracks. You can use the IWMPContentContainer interface to enumerate the tracks of the content container and retrieve the price of each track. You can also retrieve information about the content container itself, such as the container ID, the type of content in the container, and the total price for the tracks in the container (which might differ from the sum of the prices of the individual tracks, as in the case of an album purchase).

To provide a mechanism for packaging multiple content containers into a single object, Windows Media Player supports the IWMPContentContainerList interface. IWMPContentContainerList provides methods to enumerate and retrieve the content containers in the list. To discover whether the content container list represents a purchase or a subscription download, call IWMPContentContainerList::GetTransactionType to retrieve a WMPTransactionType value.

About Type 1 Online Stores

IWMPContentContainer Interface

IWMPContentContainerList Interface