Share via


Windows Media Player 11 SDK MediaCollection.getByAlbum 

Windows Media Player SDK banner art

Previous Next

MediaCollection.getByAlbum

The GetByAlbum method retrieves a playlist containing the media items from the specified album.

Syntax

  

Parameters

album

String containing the name of the album.

Return Values

This method returns a Playlist object.

Remarks

To use this method, read access to the library is required. For more information, see Library Access.

Example Code

The following example uses MediaCollection.getByAlbum to retrieve a playlist of media items. The playlist contains items with the album specified by the user in an HTML TEXT input element named GetAlbum. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next