Load Media and HTML in the Media Bar

The mediaBar Behavior provides a number of methods and properties that enable you to programmatically obtain playlist information about media files. Using the getItemInfo and getAttributeName methods, and the currentItem, nextItem, hasNextItem, and attributeCount properties, you can check values of the attributes of the items in a playlist and use the information in your HTML content.

Click to open a demonstration in the Media Bar.

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.