IWMPMediaCollection interface (wmp.h)

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

The IWMPMediaCollection interface provides methods that can be used to organize a large collection of media items.

Inheritance

The IWMPMediaCollection interface inherits from the IDispatch interface. IWMPMediaCollection also has these types of members:

Methods

The IWMPMediaCollection interface has these methods.

 
IWMPMediaCollection::add

The add method adds a new media item or playlist to the library.
IWMPMediaCollection::getAll

The getAll method retrieves a pointer to an IWMPPlaylist interface. This interface corresponds to the playlist that contains all media items in the library.
IWMPMediaCollection::getAttributeStringCollection

The getAttributeStringCollection method retrieves a pointer to an IWMPStringCollection interface. This interface represents the set of all values for a given attribute within a given media type.
IWMPMediaCollection::getByAlbum

The getByAlbum method retrieves a pointer to an IWMPPlaylist interface. This interface contains the media items from the specified album.
IWMPMediaCollection::getByAttribute

The getByAttribute method retrieves a pointer to an IWMPPlaylist interface. This interface corresponds to the specified attribute having the specified value.
IWMPMediaCollection::getByAuthor

The getByAuthor method retrieves a pointer to an IWMPPlaylist interface. This interface contains the media items for the specified author.
IWMPMediaCollection::getByGenre

The getByGenre method retrieves a pointer to an IWMPPlaylist interface. This interface contains the media items with the specified genre.
IWMPMediaCollection::getByName

The getByName method retrieves a pointer to an IWMPPlaylist interface. This interface contains the media items with the specified name.
IWMPMediaCollection::getMediaAtom

The getMediaAtom method retrieves the index at which a given attribute resides within the set of available attributes.
IWMPMediaCollection::remove

The remove method removes a specified item from the media collection.
IWMPMediaCollection::setDeleted

The setDeleted method moves the specified media item to the deleted items folder.

Requirements

Requirement Value
Target Platform Windows
Header wmp.h

See also

IWMPPlaylist Interface

Interfaces