This class is used to interface with a vizRT Media Sequence Editor, through the v-connection library. It features playing both "internal" graphics element and vizPilot elements.

Hierarchy

  • DeviceWithState<VizMSEState, DeviceOptionsVizMSEInternal>
    • VizMSEDevice

Constructors

  • Parameters

    • deviceId: string
    • deviceOptions: DeviceOptionsVizMSEInternal
    • getCurrentTime: (() => Promise<number>)
        • (): Promise<number>
        • Returns Promise<number>

    Returns VizMSEDevice

Properties

_commandReceiver: CommandReceiver = ...
_deviceOptions: DeviceOptionsVizMSEInternal
_doOnTime: DoOnTime
_doOnTimeBurst: DoOnTime
_initOptions?: VizMSEOptions
_isActive: boolean = true
_reportAllCommands: boolean = false
_vizMSE?: MSE
_vizMSEConnected: boolean = false
_vizmseManager?: VizMSEManager
useDirectTime: boolean = false

Accessors

Methods

  • Sends commands to the VizMSE server

    Parameters

    • _time: number
    • cmd: VizMSECommand

      Command to execute

    • context: string
    • timelineObjId: string

    Returns Promise<any>

  • Compares the new timeline-state with the old one, and generates commands to account for the difference

    Parameters

    • oldState: VizMSEState
    • newState: VizMSEState
    • time: number

    Returns VizMSECommand[]

  • Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T
    • fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)
        • (...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]): void
        • Parameters

          • Rest ...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]

          Returns void

    • Optional context: any

    Returns VizMSEDevice

  • Sets a windows outside of which all states will be removed.

    Parameters

    • removeBeforeTime: number
    • removeAfterTime: number

    Returns void

  • Calls each of the listeners registered for a given event.

    Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T
    • Rest ...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]

    Returns boolean

  • Return an array listing the events for which the emitter has registered listeners.

    Returns (keyof DeviceEvents)[]

  • Get the last known state at a point in time. Useful for creating device diffs.

    Todo

    is this literally the same as "getStateBefore(time + 1)"?

    Parameters

    • Optional time: number

    Returns null | {
        state: VizMSEState;
        time: number;
    }

  • Get the last known state before a point time. Useful for creating device diffs.

    Parameters

    • time: number

    Returns null | {
        state: VizMSEState;
        time: number;
    }

  • Return the number of listeners listening to a given event.

    Parameters

    • event: keyof DeviceEvents

    Returns number

  • Return the listeners registered for a given event.

    Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T

    Returns ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)[]

  • Prepares the physical device for playout.

    Parameters

    • Optional okToDestroyStuff: boolean

      Whether it is OK to do things that affects playout visibly

    • Optional activeRundownPlaylistId: string

    Returns Promise<void>

  • Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T
    • Optional fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)
        • (...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]): void
        • Parameters

          • Rest ...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]

          Returns void

    • Optional context: any
    • Optional once: boolean

    Returns VizMSEDevice

  • Add a listener for a given event.

    Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T
    • fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)
        • (...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]): void
        • Parameters

          • Rest ...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]

          Returns void

    • Optional context: any

    Returns VizMSEDevice

  • Add a one-time listener for a given event.

    Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T
    • fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)
        • (...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]): void
        • Parameters

          • Rest ...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]

          Returns void

    • Optional context: any

    Returns VizMSEDevice

  • Remove all listeners, or those of the specified event.

    Parameters

    • Optional event: keyof DeviceEvents

    Returns VizMSEDevice

  • Remove the listeners of a given event.

    Type Parameters

    • T extends keyof DeviceEvents

    Parameters

    • event: T
    • Optional fn: ((...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]) => void)
        • (...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]): void
        • Parameters

          • Rest ...args: ArgumentMap<DeviceEvents>[Extract<T, keyof DeviceEvents>]

          Returns void

    • Optional context: any
    • Optional once: boolean

    Returns VizMSEDevice

  • Saves a state on a certain time point. Overwrites any previous state saved at the same time. Removes any state after this time point.

    Parameters

    • state: VizMSEState
    • time: number

    Returns void

  • The standDown event could be triggered at a time after broadcast

    Parameters

    • Optional okToDestroyStuff: boolean

      If true, the device may do things that might affect the visible output

    Returns Promise<void>

Generated using TypeDoc