Windows Media Player SDK banner art
PreviousNext

About Windows Media Metafiles

Windows Media metafiles are text files that provide information about a file stream and its presentation. Windows Media metafiles, which use the .wax, .wvx, .wmx, and .asx extensions, are based on the Extensible Markup Language (XML) syntax. They are made up of various elements with their associated tags and attributes. Each element in a Windows Media metafile defines a particular setting or action in Microsoft Windows Media Player. Some elements must be located in a specific position in the file relative to other elements. Some elements have required tags and attributes that must be defined in the Windows Media metafile.

The most important part of successfully using Windows Media metafiles  is using the correct syntax for the metafile elements. Syntax errors in a Windows Media metafile can cause anything from a single attribute being overlooked, to the metafile not being recognized as valid and failing to work.

Almost as important is the order in which the elements appear in a Windows Media metafile. The attributes of some elements temporarily override the attributes of similar elements in different sections of the metafile. There is a defined Order of Precedence.

Windows Media metafile playlists are Window Media metafiles that provide information that Windows Media Player uses to receive unicast streams, multicast streams, and other supported media from an intranet or the Internet. A metafile playlist is basically a shortcut to media content. A metafile playlist can be sent as e-mail, used as a link reference on a Web page, created dynamically using Active Server Pages (ASP), or exist as a stand-alone file on a local disk drive. A metafile playlist can reference another metafile playlist, an ASP page, or a Windows Media Station (.nsc) file. An .nsc file is used to define a Windows Media Station to Windows Media Player. The basic handling process is the same for each case.

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.