Class StreamClient

A gRPC-web client for a Stream.

Hierarchy

  • EventDispatcher
    • StreamClient

Implements

Constructors

Properties

listeners: Partial<Record<string, Set<Callback>>> = {}

Methods

  • Add a stream by name.

    Parameters

    • name: string

    Returns Promise<void>

  • Parameters

    • type: string
    • args: unknown

    Returns void

  • Get the available livestream resolutions for a camera component. If the stream client cannot find any available resolutions, an empty list will be returned.

    Parameters

    • resourceName: string

      The name of a camera component.

    Returns Promise<Resolution[]>

    A list of available resolutions for livestreaming.

  • Get a stream by name from a StreamClient. Will time out if stream is not received within 5 seconds.

    Parameters

    • name: string

      The name of a camera component.

    Returns Promise<MediaStream>

  • Parameters

    • type: string
    • listener: Callback

    Returns undefined | boolean

  • Parameters

    • type: string
    • listener: Callback

    Returns void

  • Parameters

    • type: string
    • listener: Callback

    Returns void

  • Parameters

    • type: string
    • listener: Callback

    Returns void

  • Remove a stream by name.

    Parameters

    • name: string

    Returns Promise<void>

  • Reset the livestream options for a camera component. This will reset the resolution to the default component attributes.

    Parameters

    • name: string

      The name of a camera component.

    Returns Promise<void>

  • Set the livestream options for a camera component. This will change the resolution of the stream to the specified width and height.

    Parameters

    • name: string

      The name of a camera component.

    • width: number

      The width of the resolution.

    • height: number

      The height of the resolution.

    Returns Promise<void>

MMNEPVFCICPMFPCPTTAAATR