Skip to main content

CasparCG Control Template

Updated over 11 months ago

Control video playback from SPX

PLEASE NOTE: This article is a placehlder and at the moment for SPX internal use an may not make much sense to others...

CasparCG control template is an item on the rundown and it can send "any" command to one of the configured output servers.
​
THIS CONTROL TEMPLATE DOES NOT SHIP WITH A TYPICAL SPX INSTALLATION. Contact us for details.

See example values from below (player, stopper)

{"relpathCCG": "VIDEO/SMARTPXVIDEO/BUSINESS-WOMAN-
PRESENTING1080","playchannel": "1", "playoptions": "MIX 50 LOOP"}
{"relpathCCG": "EMPTY","playchannel": "1", "playoptions": "CUT"}

Supported keys in the template field are:

(Please note, the entire value is a JSON string.

* playserver
​

* playchannel

* playlayer

* relpathCCG

* command (usually 'play')

* playoptions

SPXGCTemplateDefinition

Template is done to be a device controller and not a graphic, for this the template's SPXGCTemplateDefinition output targets are set to "-" meaning "none".

Event handler

"function_onPlay": "CasparCGPlayback|nothing|f0|0"

Value description:

- CasparCGPlayback (the name of the custom function)

- nothing (this can be any parameter)

- 0 (execution delay in milliseconds)

- f0 (field where we extract the actual command option)

Did this answer your question?