PLAYLIST.itemMedia

[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 itemMedia attribute retrieves the Media object corresponding to the given index in the PLAYLIST element.

        elementID.itemMedia(index)

Possible Values

This attribute is a read-only Media object.

Parameters

index

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

Remarks

The itemMedia property will return media objects that are expanded in the PLAYLIST element. For example, if there is a playlist that contains three media clips that is not expanded in the PLAYLIST element, itemMedia(0) will return the playlist as the media object. If the playlist is expanded, itemMedia(0) will return the first media clip in the playlist.

Requirements

Requirement Value
Version
Windows Media Player 9 Series or later

See also

Media Object

PLAYLIST Element