Manages a websocket connection to the COGS TCP relay which can be used to send RTSP video feeds to the web.

Constructors

Properties

Methods

Constructors

  • Parameters

    • __namedParameters: {
          hostname?: string;
          path?: string;
          port?: number;
      } = {}
      • Optional hostname?: string
      • Optional path?: string
      • Optional port?: number

    Returns CogsRtspStreamer

Properties

_websocketUri: string

Methods

  • Start an RTSP video stream on with the given URI on the given video element.

    Parameters

    • params: {
          playbackRate?: number;
          restartIfStopped?: boolean;
          uri: string;
          videoElement: HTMLVideoElement;
      }
      • Optional playbackRate?: number
      • Optional restartIfStopped?: boolean
      • uri: string
      • videoElement: HTMLVideoElement

    Returns {
        close: (() => void);
    }

    An object with a function to close the pipeline

    • close: (() => void)
        • (): void
        • Returns void

Generated using TypeDoc