SrtInputSettings interface

Settings for an SRT Input node see: NorskInput.srt()

Signature:

export interface SrtInputSettings extends SrtCommonInputSettings, InputSettings<SrtInputNode>, StreamStatisticsMixin

Events

Property Type Description

onConnectionHealth?

(health: SrtConnectionHealth) ⇒ void

(Optional) Called periodically with per-connection health. Measurements only — you decide the policy (e.g. close the stream and deny with backoff).

Properties

Property Type Description

chaosDropPackets?

DropRandom

(Optional) Drop raw input packets ala NorskTransform.streamChaosMonkey(). Leaving this undefined means don’t drop any packets For testing, you really don’t want this in a live system.

claimTimeoutMs?

number

(Optional) connectionOwnership: "perConnection" only: how long an accepted connection is held for its NorskInput.srtConnection() claim before being closed. Default 10000.

connectionOwnership?

"shared" | "perConnection"

(Optional) Who owns an accepted connection’s media path (listener mode only).

"shared" (default): every connection is decomposed inside this one node — its outbound context is the union of all connected sources and subscribers use a sourceName selector. Static graphs rely on this shape.

"perConnection" (opt-in): an accepted connection is held for you to take over by creating an NorskInput.srtConnection() node for it — { listener: this, connectionId: index }, where index is the one gave you — within ; unclaimed, it is closed. That node then owns the connection: subscribe to IT for the media, and its own callbacks carry the connection’s TS context, tables, statistics, health and disconnect. This listener node carries no media (subscribing to it yields nothing) and emits no per-connection events beyond onConnection / onConnectionRejected — it is control-plane only. Each connection node’s context holds a single source, so a connect/disconnect no longer re-contexts every other stream — the shape to use for dynamic many-stream systems.

healthSampling?

HealthSamplingSettings

(Optional) Per-connection health sampling. Emits periodic InputConnectionHealth events via , carrying the SRT transport stats (rtt, latency-over-rtt, loss breakdown) plus realtime tracking / stall age. On by default; set enabled: false to disable or intervalSeconds to tune.

healthThresholds?

HealthThresholdsSettings | "recommended"

(Optional) Opt-in thresholds that make the engine emit degraded / recovered on from the measured health. Unset = off; pass "recommended" for sensible defaults. See HealthThresholdsSettings.

onSourceTimeStateChange?

(sourceTimeState: SourceTimeState) ⇒ void

(Optional) Called when either a VITC timecode is detected, or having previously detected a timestamp 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