SendScript Method

Inserts a script command into the ASF stream.

Syntax

NSASFRte.SendScript( Type, Text )

Parameters

Type

A String value specifying the type of command.

Text

A String value specifying the command's text.

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 the appointed time, the Microsoft NetShow 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 the player to process the command. The following Types of commands are automatically handled by the Player control:

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

See Also

AllowScripts

© 1996-1998 Microsoft Corporation. All rights reserved.