This sample shows a simple use of script commands in a Web page that contains the embedded version of Windows Media Player.
Click on Play to start the media playing. Click on Stop to stop it.
A JScript event handler is set up that "listens" for a script command in the media. When it encounters a script command, it uses a switch statement to look for a particular value of the script command parameter. It then sets a variable that changes the color of the text through Dynamic HTML. The particular script command is also displayed dynamically in bold text.
Script commands can be placed in a media file by using Microsoft ASFIndexer or other tools.
See the Windows Media Player SDK for more information.