ltmmWMScript.AddHeaderScript Method

Visual Basic Example

Syntax

object.AddHeaderScript (ScriptType As String, ScriptCommand As String, ScriptTime As Double)

Remarks

Adds a header script to be executed at a particular time during playback.

This method can raise an error exception. For more information, refer to the Error Codes.

Header scripts are added when you know how many scripts you have and their location beforehand. Also, since they are stored in the header, they will need to be all downloaded before playback begins.

Stream scripts are added when you don't know how many you will have or when there are too many and you don't want to slow down the start of the playback. For example, if you have a live capture and there are certain notifications that you will receive during the capture, you would use stream scripts.

Platforms

Win32, x64

See Also

Elements:

ltmmWMScript Object, ltmmWMScript.HeaderScriptCount property, ltmmWMScript.EnableScriptStream property, ltmmWMScript.GetHeaderScript method, ltmmWMScript.RemoveHeaderScript method, ltmmWMScript.RemoveAllHeaderScripts method, ltmmWMScript.WriteScriptStream method, ltmmWMScript.CloseScriptStream method

Topics:

Multimedia Properties, Methods and Events

 

Add Script Commands To Video Example for Visual Basic

 

Processing Script Commands During Playback Example for Visual Basic