Class CasparCGState0

Hierarchy

Constructors

  • Parameters

    • Optional config: {
          externalStorage?: ((action: string, data?: null | Record<string, any>) => InternalState);
          getMediaDurationCallback?: ((clip: string, callback: ((duration: number) => void)) => void);
      }
      • Optional externalStorage?: ((action: string, data?: null | Record<string, any>) => InternalState)
          • (action: string, data?: null | Record<string, any>): InternalState
          • Parameters

            • action: string
            • Optional data: null | Record<string, any>

            Returns InternalState

      • Optional getMediaDurationCallback?: ((clip: string, callback: ((duration: number) => void)) => void)
          • (clip: string, callback: ((duration: number) => void)): void
          • Parameters

            • clip: string
            • callback: ((duration: number) => void)
                • (duration: number): void
                • Parameters

                  • duration: number

                  Returns void

            Returns void

    Returns CasparCGState0

Properties

_currentStateStorage: StateObjectStorage = ...
_isInitialised: boolean = false
bufferedCommands: {
    additionalLayerState?: LayerBase;
    cmd: AMCPCommand;
}[] = []
minTimeSincePlay: number = MIN_TIME_SINCE_PLAY

Accessors

Methods

  • Parameters

    • initialised: boolean
    • _currentTime: number

    Returns void

  • Set the current statue to a provided state

    Parameters

    • state: InternalState

      The new state

    Returns void

  • A soft clear, ie clears any content, but keeps channel settings

    Returns void

  • Temporary, intermediate function, to deal with ordering of commands. (This might be replaced with something more permanent later)

    Parameters

    • oldState: InternalState
    • newState: State
    • currentTime: number
    • minTimeSincePlay: number = MIN_TIME_SINCE_PLAY

    Returns AMCPCommandWithContext[]

Generated using TypeDoc