Class ObsApiService

Hierarchy

Index

Constructors

constructor

Properties

nodeObs

nodeObs: any = nodeObs

serviceName

serviceName: string = this.constructor.name

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

Static instance

  • get instance(): any

Methods

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

createDisplay

  • createDisplay(key: string): void

createSourceDisplay

  • createSourceDisplay(sourceId: string, key: string, nativeWindowHandle: Buffer): any
  • Parameters

    • sourceId: string
    • key: string
    • nativeWindowHandle: Buffer

    Returns any

getObsProfiles

  • getObsProfiles(): string[]

getObsSceneCollections

  • getObsSceneCollections(): string[]

Protected init

  • init(): void

isObsInstalled

  • isObsInstalled(): any

Protected mounted

  • mounted(): void

moveDisplay

  • moveDisplay(key: string, x: number, y: number): void
  • Parameters

    • key: string
    • x: number
    • y: number

    Returns void

removeSourceDisplay

  • removeSourceDisplay(key: string): void

resizeDisplay

  • resizeDisplay(key: string, width: number, height: number): void
  • Parameters

    • key: string
    • width: number
    • height: number

    Returns void

selectSource

  • selectSource(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void