Class CogsConnection<Manifest, DataT>

Type Parameters

  • Manifest extends CogsPluginManifest

  • DataT extends {
        [key: string]: unknown;
    } = Record<never, never>

Constructors

Properties

_selectedAudioOutput: string = ''
_showPhase: ShowPhase = ShowPhase.Setup
_timerState: null | TimerState = null
audioOutputs: undefined | MediaDeviceInfo[] = undefined

Cached audio outputs use to look up the device/sink ID when a different device label is requested

currentConfig: DistributeObject<{
    [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["config"]>[number]>, {
        name: Name;
    }>["value"]>
}> = ...
currentState: DistributeObject<{
    [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["state"]>[number]>, {
        name: Name;
    }>["value"]>
}> = ...
eventTarget: EventTarget = ...
manifest: Manifest
store: default<DataT>

Stores data in COGS

urlParams: URLSearchParams

URL parameters use for the websocket connection and asset URLs

websocket: WebSocket | default

Accessors

  • get config(): DistributeObject<{
        [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["config"]>[number]>, {
            name: Name;
        }>["value"]>
    }>
  • Returns DistributeObject<{
        [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["config"]>[number]>, {
            name: Name;
        }>["value"]>
    }>

  • get state(): DistributeObject<{
        [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["state"]>[number]>, {
            name: Name;
        }>["value"]>
    }>
  • Returns DistributeObject<{
        [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["state"]>[number]>, {
            name: Name;
        }>["value"]>
    }>

Methods

  • Type Parameters

    • EventType extends "open" | "message" | "close" | "config" | "state" | "event"

    Parameters

    Returns void

  • Return asset URLs using the information about the client and server support for HTTP/2

    Parameters

    • path: string

    Returns string

  • Parameters

    • audioOutput: string

    Returns undefined | string

  • Parameters

    • audioOutputs: MediaDeviceInfo[]

    Returns void

  • Parameters

    • partialItems: {
          [key: string]: unknown;
      }
      • [key: string]: unknown

    Returns void

  • Parameters

    • allMediaClipStates: default

    Returns void

  • Show or hide the plugin window.

    Parameters

    • visible: boolean

      Whether to show or hide the window This is only relevant for plugins, not for Media Master content.

    Returns void

  • Parameters

    • values: Partial<DistributeObject<{
          [Name in string]: TypeFromCogsValueType<Extract<DeepMutable<NonNullable<Manifest["state"]>[number]>, {
              name: Name;
          }>["value"]>
      }>>

    Returns void

Generated using TypeDoc