Windows Media Player 11 SDK StringCollection.getItemInfoByType
Previous | Next |
StringCollection.getItemInfoByType
The getItemInfoByType method retrieves the value corresponding to the specified StringCollection index, name, language, and attribute index.
Syntax
Parameters
index
Number (long) specifying the zero-based index of the StringCollection item from which to get the attribute.
name
String containing the attribute name.
language
String containing the language. If the value is set to null or the empty string ("") the current locale string is used. Otherwise, the value must be a valid RFC 1766 language string such as "en-us".
attributeIndex
Number (long) containing the zero-based index of the value to retrieve from the attribute.
Return Values
This method returns a Number, String, MetadataPicture object, or MetadataText object as indicated in the following table.
Attribute | Return value |
SyncState | Number (unsigned long) |
WM/Lyrics_Synchronised | MetadataText object |
WM/Picture | MetadataPicture object |
WM/UserWebURL | MetadataText object |
All other attributes | String |
For attributes whose underlying value is Boolean, this method returns the string "true" or "false".
Remarks
This method supports attributes with multiple values, and attributes with complex values. The getItemInfo method does not support attributes with multiple or complex values.
To use this method, read access to the library is required. For more information, see Library Access.
Requirements
Version: Windows Media Player 11.
Library: Use wmp.dll.
See Also
Previous | Next |