Private
_ccgSetup in init
Private
_commandPrivate
_connectedPrivate
_currentProtected
_devicePrivate
_doProtected
_isPrivate
_queueProtected
_reportPrivate
_retryPrivate
_retryPrivate
_transitionPrivate
Optional
initPrivate
_addUse either AMCP Command Scheduling or the doOnTime to execute commands at {@code time}.
Commands to be added to queue
Point in time to send commands at
Private
_assertPrivate
_changePrivate
_connectionPrivate
_defaultRest
...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]Optional
context: anyProtected
cleanPrivate
clearProtected
clearPrivate
convertTakes a timeline state and returns a CasparCG State that will work with the state lib.
The timeline state to generate from.
Calls each of the listeners registered for a given event.
Rest
...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]Protected
emitProtected
emitProtected
getGet the last known state at a point in time. Useful for creating device diffs.
is this literally the same as "getStateBefore(time + 1)"?
Optional
time: numberProtected
getPrivate
getProtected
handleGenerates an array of CasparCG commands by comparing the newState against the oldState, or the current device state.
Initiates the connection with CasparCG through the ccg-connection lib and initializes CasparCG State library.
Private
listReturn the listeners registered for a given event.
Prepares the physical device for playout. If amcp scheduling is used this tries to sync the timecode. If {@code okToDestroyStuff === true} this clears all channels and resets our states.
Optional
okToDestroyStuff: booleanWhether it is OK to restart the device
Optional
fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)Rest
...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]Optional
context: anyProtected
onTo be called by children first in .handleState
Add a one-time listener for a given event.
Rest
...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof DeviceEventsRemove the listeners of a given event.
Optional
fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)Rest
...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]Optional
context: anyOptional
once: booleanPrivate
restartAttemps to restart casparcg over the HTTP API provided by CasparCG launcher.
Protected
setGenerated using TypeDoc
This class is used to interface with CasparCG installations. It creates device states from timeline states and then diffs these states to generate commands. It depends on the DoOnTime class to execute the commands timely or, optionally, uses the CasparCG command scheduling features.