home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / Chip_2002-10_cd1.bin / zkuste / vbasic / Data / Utils / WMP71SDK.exe / scriptcom.txt < prev    next >
Encoding:
Text File  |  2001-03-02  |  720 b   |  10 lines

  1. This sample shows a simple use of script commands in a Web page that contains the embedded version of Windows Media Player.
  2.  
  3. Click on Play to start the media playing. Click on Stop to stop it. 
  4.  
  5. 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.
  6.  
  7. Script commands can be placed in a media file by using Microsoft ASFIndexer or other tools.
  8.  
  9. See the Windows Media Player SDK for more information.
  10.