Windows Media Player 11 SDK MediaCollection.getByGenre
Previous | Next |
MediaCollection.getByGenre
The getByGenre method retrieves a playlist of the media items with the specified genre.
Syntax
Parameters
genre
String containing the name of the genre.
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 JScript example uses MediaCollection.getByGenre to retrieve a playlist of media items. The playlist contains items with the genre specified by the user in an HTML TEXT input element named GetGenre. 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 |