Processing Embedded Script Commands

Windows Media Player SDK banner art

One compelling feature of Windows Media streams is that they can deliver script commands to the Windows Media Player control, along with the audio and video streams. These script commands are pairs of Unicode strings synchronized with a particular time in the multimedia stream. The first string identifies the type of command being sent, and the second specifies the command to process. When the stream reaches the time associated with a command, the control sends a ScriptCommand event to the Web page that contains it. An event-handling routine can then respond to this event. The script command strings are passed to the event handler as parameters of the ScriptCommand event.

The Windows Media Player control automatically processes the following types of embedded script commands. Event-handling routines are not necessary to process these types of commands.