Share via


Windows Media Player 11 SDK Media.getItemInfo 

Windows Media Player SDK banner art

Previous Next

Media.getItemInfo

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

Syntax

  

Parameters

name

String containing the name of the attribute. For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference.

Return Values

This method returns a String representing the value of the specified attribute. For attributes whose underlying value is Boolean, it returns the string "true" or "false".

Remarks

This method retrieves the metadata for an individual digital media item or a media item that is part of a playlist.

The attributeCount property contains the number of attribute names available for a given Media object. Index numbers can then be used with the getAttributeName method to determine the name of each available attribute. Individual attribute names can be passed to getItemInfo.

To retrieve attributes with multiple values and attributes with complex values, use the getItemInfoByType method.

To use this method, read access to the library is required. For more information, see Library Access.

Windows Media Player 10 Mobile: Attributes for a media item are available only during playback unless they are retrieved from the item through the media collection.

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next