SfuMonitor is responsible for monitoring and collecting SFU-related data.

Hierarchy

  • SfuMonitor

Properties

closed: boolean

Indicates if the SfuObserver is closed or not.

The SfuMonitor configuration object.

metrics: MonitorMetrics

Access to general monitor-related metrics.

sfuId: string

Gets the SFU identifier.

storage: StatsReader

Access to the collected stats.

Methods

  • Adds an arbitrary stats object that will be sent to the backend observer.

    Parameters

    • stats: ExtensionStat

      The arbitrary stats object.

    Returns void

  • Adds an RTP stream added event to the SFU event list.

    Parameters

    • transportId: string

      The identifier of the transport associated with the RTP stream.

    • rtpPadId: string

      The identifier of the RTP pad.

    • sfuStreamId: string

      The identifier of the SFU stream.

    • Optional sfuSinkId: string

      Optional identifier of the SFU sink.

    • Optional timestamp: number

      Optional timestamp for the event. If not provided, the current date and time will be used.

    Returns void

  • Adds an RTP stream removed event to the SFU event list.

    Parameters

    • transportId: string

      The identifier of the transport associated with the RTP stream.

    • rtpPadId: string

      The identifier of the RTP pad.

    • sfuStreamId: string

      The identifier of the SFU stream.

    • Optional sfuSinkId: string

      Optional identifier of the SFU sink.

    • Optional timestamp: number

      Optional timestamp for the event. If not provided, the current date and time will be used.

    Returns void

  • Adds a transport closed event to the custom SFU event list.

    Parameters

    • transportId: string

      The identifier of the closed transport.

    • Optional timestamp: number

      Optional timestamp for the event. If not provided, the current date and time will be used.

    Returns void

  • Adds a transport opened event to the custom SFU event list.

    Parameters

    • transportId: string

      The identifier of the opened transport.

    • Optional timestamp: number

      Optional timestamp for the event. If not provided, the current date and time will be used.

    Returns void

  • Closes the observer and all its used resources.

    Returns void

  • Creates a sfu sample from the collected stats.

    Returns void

  • Marks all of the created samples with a given string.

    Parameters

    • marker: string

      The string to mark the samples with.

    Returns void

Generated using TypeDoc