Class VideoService

Hierarchy

Index

Constructors

constructor

Properties

activeDisplays

activeDisplays: Dictionary<Display>

serviceName

serviceName: string = this.constructor.name

settingsService

settingsService: SettingsService

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

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

lifecycle hook

Accessors

baseHeight

  • get baseHeight(): number

baseResolution

  • get baseResolution(): object
  • Returns object

    • height: number
    • width: number

baseWidth

  • get baseWidth(): number

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

destroyAllDisplays

  • destroyAllDisplays(): void
  • Destroy all active displays. This is useful on shutdown.

    Returns void

getRandomDisplayId

  • getRandomDisplayId(): string

getScreenRectangle

  • getScreenRectangle(): ScalableRectangle

init

  • init(): void

Protected mounted

  • mounted(): void

registerDisplay

  • registerDisplay(display: Display): void

unregisterDisplay

  • unregisterDisplay(display: Display): 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