Options
All
  • Public
  • Public/Protected
  • All
Menu

Representation of a Media Sequencer Engine.

Implementations of this interface are expected to hold minimal state, requesting information from an MSE when it is required. Users of this interface should be aware that every call may take some time to complete.

Rundowns are a v-connection concept held as special playlists in the MSE with a sub-element called sofie_show. It is safe to have more than one instance of a rundown or set up distributed access to a rundown.

Hierarchy

  • EventEmitter
    • MSE

Index

Properties

hostname: string

Hostname or IP address for the MSE.

restPort: number

Port for HTTP commands to the MSE.

wsPort: number

Websocket port for PepTalk communication with the MSE.

Methods

  • addListener(event: string | symbol, listener: ((...args: any[]) => void)): MSE
  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MSE

  • close(): Promise<boolean>
  • Close all connections and release any resouces.

    Returns Promise<boolean>

    Resolves to true on success.

  • createProfile(profileName: string, profileDetailsTbc: any): Promise<VProfile>
  • Create a new profile for this MSE. A profile associated a show with the Vix Engine handlers that it controls, representing the current state of a rundown.

    Parameters

    • profileName: string

      Name of the profile to create.

    • profileDetailsTbc: any

      TODO

    Returns Promise<VProfile>

    Resolves to provide details of the newly created profile.

  • createRundown(profile: string, playlistID?: string, description?: string): Promise<VRundown>
  • Create a new rundown to be executed on this MSE.

    Parameters

    • profile: string
    • Optional playlistID: string

      Optional UUID identifier for the playlist. If none is provided, one will be generated.

    • Optional description: string

      Optional rundown description. Used as a name in Viz Content Pilot.

    Returns Promise<VRundown>

    Resolves to a newly created rundown.

  • deleteProfile(profileName: string): Promise<boolean>
  • Delete a profile fot this MSE. A profile cannot be deleted if an associated rundown is active.

    Parameters

    • profileName: string

      Name of the profile to delete.

    Returns Promise<boolean>

    Resolves true on successful deletion of the profile, or false if the profile does not exist.

  • deleteRundown(rundown: VRundown): Promise<boolean>
  • Delete a rundown from this MSE. Note that rundowns can only be deleted when they are not activated.

    Parameters

    • rundown: VRundown

      Rundown to be deleted.

    Returns Promise<boolean>

    Was the delete operation successful?

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

  • Retrieve a list of all Viz Engines with handlers at this MSE.

    Returns Promise<VizEngine[]>

    Resolves to a list of Viz Engine handlers for this MSE.

  • getMaxListeners(): number
  • Returns number

  • getPlaylist(playlistName: string): Promise<VPlaylist>
  • Retrieve details of a specific playlist as stored at this MSE.

    Parameters

    • playlistName: string

      Name or UUID of a playlist to query.

    Returns Promise<VPlaylist>

    Resolves to the details of the named playlist.

  • getProfile(profileName: string): Promise<VProfile>
  • Retrieve the details of a specific profile at this MSE.

    Parameters

    • profileName: string

      Name of the profile to query.

    Returns Promise<VProfile>

    Resolves to the details of the named profile.

  • getRundown(playlistID: string): Promise<VRundown>
  • Retrieve the details and controls for a single Sofie rundown.

    Parameters

    • playlistID: string

      Identifier of the playlist associated with the requested rundown.

    Returns Promise<VRundown>

    Rundown with the given identifier.

  • Retrieve the details and controls for all Sofie rundowns of this MSE.

    Returns Promise<VRundown[]>

    List of rundowns for this MSE.

  • getShow(showId: string): Promise<VShow>
  • Retrieve details of a specific show as stored at this MSE.

    Parameters

    • showId: string

      Name of the show to query, a UUID.

    Returns Promise<VShow>

    Resolves to the details of the named show.

  • listPlaylists(): Promise<string[]>
  • List the playlists stored for this MSE.

    Returns Promise<string[]>

    Resolves to a list of playlists stored for this MSE.

  • listProfiles(): Promise<string[]>
  • List the names of all the profiles for this MSE.

    Returns Promise<string[]>

    List of the names of all the profiles known to this MSE.

  • listShows(): Promise<string[]>
  • List the shows stored for this MSE.

    Returns Promise<string[]>

    List of all the shows stored for this MSE.

  • listShowsFromDirectory(): Promise<Map<string, string>>
  • List the shows in the MSE's directory.

    Returns Promise<Map<string, string>>

    A map of all the shows in the directory (paths relative to /directory/shows/), and their unique IDs. Example entry: ['overlay-shows/sample-show.show', '66E45216-9476-4BDC-9556-C3DB487ED9DF']

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

  • off(event: string | symbol, listener: ((...args: any[]) => void)): MSE
  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MSE

  • on(event: "connected", listener: (() => void)): MSE
  • on(event: "warning", listener: ((message: string) => void)): MSE
  • on(event: "disconnected", listener: ((err?: Error) => void)): MSE
  • Add a listener for all non-error messages and events from the server.

    Parameters

    • event: "connected"
    • listener: (() => void)
        • (): void
        • Returns void

    Returns MSE

  • Parameters

    • event: "warning"
    • listener: ((message: string) => void)
        • (message: string): void
        • Parameters

          • message: string

          Returns void

    Returns MSE

  • Add a listener for all error messages from the server.

    Parameters

    • event: "disconnected"
    • listener: ((err?: Error) => void)
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns MSE

  • once(event: string | symbol, listener: ((...args: any[]) => void)): MSE
  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MSE

  • ping(): Promise<CommandResult>
  • Check the status of PepTalk websocket and HTTP API connections to the MSE.

    Returns Promise<CommandResult>

    Resolves if both connections were successful.

  • prependListener(event: string | symbol, listener: ((...args: any[]) => void)): MSE
  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MSE

  • prependOnceListener(event: string | symbol, listener: ((...args: any[]) => void)): MSE
  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MSE

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

  • removeAllListeners(event?: string | symbol): MSE
  • Parameters

    • Optional event: string | symbol

    Returns MSE

  • removeListener(event: string | symbol, listener: ((...args: any[]) => void)): MSE
  • Parameters

    • event: string | symbol
    • listener: ((...args: any[]) => void)
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns MSE

  • setMaxListeners(n: number): MSE
  • Parameters

    • n: number

    Returns MSE

  • timeout(t?: number): number
  • Set the maximum amount of time that an operation can take.

    Parameters

    • Optional t: number

      Maximum number of milliseconds for any operation. Omit for query.

    Returns number

    Timeeout value set. May be different from request if outside range.

Generated using TypeDoc