Windows Media Player SDK banner art
PreviousNext

Media.getItemInfo

The getItemInfo method retrieves the value of the specified attribute for the current media item.

Syntax

player.currentMedia.getItemInfo(attribute)

Parameters

  attribute

String containing the attribute name.

Return Values

This method returns a String representing the value of the specified attribute.

Remarks

This is the method used to retrieve metadata information about a specific piece of media content, whether it stands alone or is part of a playlist.

The attributeCount property can be used to determine the number of attributes available for a given Media object. Index numbers can then be used with the getAttributeName method to determine the names of the attributes, which can in turn be passed to getItemInfo. Alternately, the value of an attribute can be retrieved directly from the index number using the getItemInfoByAtom method.

Example

Please see the Playlist.attributeCount property for a sample illustrating the use of this property.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.