Windows Media Player SDK banner art
PreviousNext

MediaCollection.getMediaAtom

The getMediaAtom method retrieves the index at which a given attribute resides within the set of available attributes.

Syntax

player.mediaCollection.getMediaAtom(attribute)

Parameters

  attribute

String containing the attribute name. Must contain one of the following values.

Value Description
Album The name of the album. Used with media items only.
Artist The name of the artist. Not used with user-created Playlists.
Author The name of the artist.
Bitrate The bit rate of the content. Used only with media items from the media library.
Copyright The copyright of the Playlist item. Not used with CD playlists or media items.
CreationDate The date and time that the entry in the media library was created. Used only with items from the media library.
DigitallySecure Indicates whether the item is protected with Digital Rights Management. Used only with media items from the media library.
Genre The genre of the Playlist item. Not used with playlists from CDs.
MediaType The type of the media item (audio or video).
Name The name of the Playlist item.
PlayCount The number of times the content has been played through to the end. Used only with media items from the media library.
SourceURL The path or URL to the content. Used only with media items from the media library.
TOC If applicable, the corresponding CD Table of Contents Indentifier. Not used with user-created Playlists.

Return Values

This method returns a Number (long).

Remarks

This method can be used in conjunction with Media.getItemInfoByAtom in order to retrieve metadata information about a specific media item.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.