PLAYLIST.itemPlaylist

[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 itemPlaylist attribute retrieves the playlist for the media item that is displayed at the given index in the PLAYLIST element.

        elementID.itemPlaylist(index)

Possible Values

This attribute is a read-only Playlist object.

Parameters

index

Number(long) containing the index of a playlist item.

Remarks

The itemPlaylist property will return the playlist object that is expanded in the PLAYLIST element. For example, if there are two nested playlists that are not expanded in the PLAYLIST element, and that contain three media clips each, itemPlaylist(1) will return the parent playlist that contains the two nested playlists. If the second playlist is expanded, itemPlaylist(1) will return the second playlist. If both playlists are expanded, itemPlaylist(1) will return the first playlist.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later

See also

PLAYLIST Element

Playlist Object