![]() |
Previous | Next |
You can use Active Server Pages (ASP, or .asp files) to dynamically generate playlists based on information provided by users. An ASP page is a dynamic Web page used in conjunction with Microsoft® Internet Information Service (IIS). ASP is an environment in which you can combine HTML, scripts, and reusable ActiveX server components to create dynamic and powerful Web-based business solutions. ASP pages enable server-side scripting for IIS with native support for both Microsoft Visual Basic® Scripting Edition (VBScript) and Microsoft Jscript®. This discussion assumes that you are familiar with ASP and defining variables.
All header information must be contained on the first line of the ASP page string returned to Windows Media Player.
When you use ASP pages to generate playlists, you must define a Response type variable, as well as a Response expire variable in the ASP page because of latency issues with Windows Media Player. The response type must be a valid extension for Windows Media metafiles. Valid types include wma, wax, wmv, wvx, asf, and asx.
The following code is an example of an ASP page used to generate a Windows Media metafile playlist.
<%Response.ContentType = "video/x-ms-wma"%><%Response.expires=0 %>
<ASX VERSION="3.0">
<TITLE>Your title here</TITLE>
<ENTRY>
<REF href ="mms://yourpath.com/pubpt/filename.wma" />
</ENTRY>
</ASX>
Previous | Next |