Windows Media Services SDK banner art
PreviousNext

About the Online Training Sample

The Online Training Sample is run from Default.htm, which contains three frames: Asfpage.htm for holding the embedded Windows Media Player control, Slides.htm for holding the JPEG image files, and Toc.htm for holding the auto-generated table of contents links. The Training directory also holds the image files and the .asf file (Training_28.asf).

About the .asf File

Training_28.asf includes markers and script commands. Markers are assigned to points in the presentation where new topics begin. Script commands are assigned to points where the author wants slide changes. All script commands in this sample use the type string "URL", which instructs Windows Media Player to send a URL to the browser; the command string of the script command contains the actual URL. In the following example, the URL text points to an image, and indicates the frame into which it is placed.

URL slide1.jpg&&slides

About the Table of Contents

The table of contents is created dynamically by script in the Web page that reads the markers contained in the incoming ASF stream. The ability to read markers dynamically is very useful. If markers are hard-coded for a specific .asf file, the HTML scripting has to change every time the .asf file changes. By including HTML scripting that automatically generates a table of contents, the four .htm files included in this sample can play any .asf file. The only parameter that must be changed is the .asf file name.

The marker names in the table of contents are also links. When a marker name is clicked, scripting in the page causes Windows Media Player to seek to the named marker. For more information, see Scripting Reference in the Windows Media Player Control SDK.

Expanding on the Sample

The following examples show how you can expand on the Online Training Sample by modifying the HTML file included in this SDK.

See Also

Using the Online Training Sample, Windows Media Technologies Solutions Samples

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.