Windows Media Encoder SDK banner art
PreviousNext

SendScript Method

Inserts a script command into the ASF stream.

Syntax

NSASFRte.SendScript( Type, Command )

Parameters

Type

A String value specifying the type of the command.

Command

A String value specifying the text of the command.

Return Values

This method has no return value.

Remarks

A script command is associated with a designated time in the ASF stream. When the stream reaches that time, the Windows Media Player control rendering the stream issues an event. The event can be captured and processed by an event handling routine. Any type of command can be sent for a reciprocal event handler written for Microsoft® Windows Media™ Player to process the command. The following Types of commands are automatically handled by the Windows Media Player control:

Script commands can only be sent if the AllowScripts property is True.

See Also

AllowScripts

PreviousNext

© 1999 Microsoft Corporation. All rights reserved.