Home

Awesome

CasparTimer

CasparCG Timer component for stopwatches or countdowns

Component parameters

CountMode

Sets if timer will count time up or down. A string value from the following list:

StartTime

Sets the timer initial time in milliseconds

StopTime

Sets the timer end time in milliseconds

Format

A string value from the following list:

When this parameter is set, the FormatProvider is automatically assigned with a corresponding object instance.

FormatProvider

An object reference to a class instance implementing the ITimerDisplayFormat interface. This can only be called from script with one of the provided classes or one created by you.

Text Display Formatting parameters

The text used to display the system time can be formatted using the following parameters:

Component methods

Start

Starts the timer or resumes counting if previously stopped.

Stop

Stops the timer

Reset

Stops the timer and resets back to the Start Time.

SetTime(milliseconds:Number)

Sets the timer's current time.

Controlling the timer

The CasparTimer can be controlled by invoking the available component methods or by sending special command keywords using the template fields. The available keywords are:

The "set", "begin" and "end" commands must specify a numeric value, representing the time intended in milliseconds. You can specify more than one command at once by separating them with a space character in the field value.

Example:

Compiling .SWC file

Using .SWC file