Share via


Windows Media Player 11 SDK Playlist.itemĀ 

Windows Media Player SDK banner art

Previous Next

Playlist.item

The item method retrieves the media item at the specified index.

Syntax

  

Parameters

index

Number (long) containing the index of the item to be retrieved.

Return Values

This method returns a Media 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 Playlist.item to retrieve a media item from the current playlist based on a user selection. An HTML SELECT element was created with name "weblist", and filled with the titles from the current playlist. 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