![]() |
Previous | Next |
You can create custom parameters to pass additional metadata in a metafile playlist by using the PARAM element. Use the NAME attribute of the PARAM element to define the custom parameter name. Use the VALUE attribute to define the value for the named custom parameter.
Retrieve PARAM metadata by using the getItemInfo methods of the Media and Playlist objects, for Windows Media Player 7 or later. For an example using these methods to retrieve metadata, see the attributeCount method of the Playlist object.
Use the GetMediaParameter method for retrieving PARAM metadata with Windows Media Player version 6.4.
The following example metafile playlist shows the use of the PARAM element to define custom parameters.
<ASX version="3.0" BANNERBAR="auto" >
<TITLE>Example Media Player Show</TITLE>
<PARAM NAME="Director" VALUE="Jane D." />
<ENTRY>
<TITLE>Example Clip</TITLE>
<REF href="http://somesamples.com/media.wma" />
<PARAM NAME="Title" VALUE="Example Clip" />
<PARAM NAME="Location" VALUE="North America" />
<PARAM NAME="Release Date" VALUE="March 1998" />
</ENTRY>
<ENTRY>
<TITLE>Another Clip</TITLE>
<REF href="http://somesamples.com/more_media.wma" />
<PARAM NAME="Title" VALUE="Another Clip" />
<PARAM NAME="Location" VALUE="Japan" />
<PARAM NAME="Release Date" VALUE="December 2000" />
</ENTRY>
</ASX>
Previous | Next |