This example demonstrates most of the playlist and media item properties available in the Media Bar behavior, including name, duration, attributeCount, and sourceURL. As the onopenstatechange and onplaystatechange events fire, the example updates a list of property values for the current playlist item, the next playlist item, and the playlist object.
The example also demonstrates the attributeCount property and the getAttributeName and getItemInfo methods, which provide access to summary information about playlists loaded in the Media Bar. To see summary information displayed for playlist items, click the "All Item Info" link at the end of each property list in the Media Bar content area.
To view the source code, right-click this page and choose View Source from the shortcut menu that appears.
© 2007 Microsoft Corporation. All rights reserved. Terms of use.