getAttributeName Method

Internet Development Index

Returns the name of the attribute whose index has been specified.

Syntax

sItemName = object.getAttributeName(lIndex)

Parameters

lIndex Required. Integer that specifies the attribute index.

Return Value

String that receives the attribute name.

Remarks

You can use this method to return the available categories of information about loaded or upcoming media items. For example, you might use this method to determine whether an attribute index specifies abstract, author, copyright, or duration information, depending on the media item.

If no media is currently playing in the Media Bar, any attempt to access media attribute information with getItemInfo, getAttributeName, or attributeCount returns a script error.

Applies To

PlaylistInfo, MediaItem

See Also

currentItem, nextItem