Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new MediaController(client: Client, sourceId: string, destinationId: string): MediaController

Properties

lastRequestId

lastRequestId: number

Static defaultMaxListeners

defaultMaxListeners: number

Methods

addListener

  • addListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

close

  • close(): void

emit

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

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

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>
  • Returns Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getStatus

  • getStatus(): Promise<Object>

listenerCount

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

    • type: string | symbol

    Returns number

listeners

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

    • event: string | symbol

    Returns Function[]

load

  • load(media: any, options?: object): Promise<Object>
  • Load media

    Parameters

    • media: any
    • Default value options: object = {}

    Returns Promise<Object>

off

  • off(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

pause

  • pause(): Promise<Object>

play

  • play(): Promise<Object>

prependListener

  • prependListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

queueInsert

  • queueInsert(items: Object[], options: Object): Promise<Object>
  • Insert items into the queue

    Parameters

    • items: Object[]

      Items to insert

    • options: Object

      Options

    Returns Promise<Object>

queueLoad

  • queueLoad(items: Object[], options?: Object): Promise<Object>

queueRemove

  • queueRemove(itemIds: string[], options: Object): Promise<Object>
  • Remove items from the queue

    Parameters

    • itemIds: string[]

      IDs to remove

    • options: Object

      Options

    Returns Promise<Object>

queueReorder

  • queueReorder(itemIds: string[], options: Object): Promise<Object>
  • Reorder the queue

    Parameters

    • itemIds: string[]

      IDs to reorder

    • options: Object

      Options

    Returns Promise<Object>

queueUpdate

  • queueUpdate(items: Object[], options: Object): Promise<Object>
  • Update the queue

    Parameters

    • items: Object[]

      Items

    • options: Object

      Options

    Returns Promise<Object>

rawListeners

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

    • event: string | symbol

    Returns Function[]

removeAllListeners

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

    • Optional event: string | symbol

    Returns this

removeListener

  • removeListener(event: string | symbol, listener: function): this
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns this

request

  • request(data: Record<string, any>): Promise<Response>

seek

  • seek(currentTime: any): Promise<Object>
  • Seek through the media

    Parameters

    • currentTime: any

      Time to seek to

    Returns Promise<Object>

send

  • send(data: Record<string, string>): void

sessionRequest

  • sessionRequest(data: any): Promise<Object>

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

stop

  • stop(): Promise<Object>

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • deprecated

    since v4.0.0

    Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc