Windows Media Player 11 SDK Media.getAttributeNameĀ
Previous | Next |
Media.getAttributeName
The getAttributeName method retrieves the name of the attribute corresponding to the specified index.
Syntax
Parameters
index
Number (long) containing the index of the attribute.
Return Values
This method returns a String specifying the name of the attribute.
Remarks
The attribute name returned can be used in conjunction with getItemInfo to retrieve the value for a specific named attribute.
To use this method, read access to the library is required. For more information, see Library Access.
For information about the attributes supported by Windows Media Player, see the Windows Media Player Attribute Reference..
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.
Example Code
The following JScript example uses Media.getAttributeName to fill an HTML text area named myText with the index and name of each attribute for the current media item. The Player object was created with ID = "Player".
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
- Media Object
- Media.attributeCount
- Media.getItemInfo
- Settings.mediaAccessRights
- Settings.requestMediaAccessRights
Previous | Next |