SrtConnectionInputSettings interface

Settings for an SRT Connection node: one accepted connection of an SRT listener running connectionOwnership: "perConnection", taken over as a source node of its own. See NorskInput.srtConnection().

Signature:

export interface SrtConnectionInputSettings extends SourceNodeSettings<SrtConnectionInputNode>, StreamStatisticsMixin

Events

Property Type Description

onConnectionHealth?

(health: SrtConnectionHealth) ⇒ void

(Optional) Called periodically with this connection’s health. Measurements only — you decide the policy (e.g. close() the node to drop the connection).

onConnectionStatusChange?

(status: SrtInputStatus, sourceName: string | undefined, index: number, health?: InputHealthStatus) ⇒ void

(Optional) disconnected when the connection goes (the node then flushes, EOS-es its subscribers and closes — the handle emits close); degraded / recovered from .

Properties

Property Type Description

connectionId

number

The connection: the index passed to the listener’s onConnection

healthSampling?

HealthSamplingSettings

(Optional) Per-connection health sampling (). Unset = the listener’s setting.

healthThresholds?

HealthThresholdsSettings | "recommended"

(Optional) Opt-in thresholds for engine-side degraded / recovered on . Unset = the listener’s setting.

listener

SrtInputNode

The listener that accepted the connection

onSourceTimeStateChange?

(sourceTimeState: SourceTimeState) ⇒ void

(Optional) Called when a VITC timecode is detected, or having previously detected one it stops being present

onTsContext?

(context: SrtTsContext) ⇒ void

(Optional)

onTsTable?

(table: SrtTsTable) ⇒ void

(Optional) Callback to be invoked on receiving a TS PSI/SI table/section