SrtCommonInputSettings interface
Settings for an SRT Input node see: NorskInput.srt()
Signature:
export interface SrtCommonInputSettings
Events
| Property | Type | Description |
|---|---|---|
( streamId: string, index: number, remoteHost: string, parsed?: SrtStreamIdParsed) ⇒ SrtConnectionResult |
(Optional) On connect callback, notifying that a new caller has connected (in listener mode) and set the source name accordingly |
|
(rejection: { streamId: string; route: string; user?: string; remoteHost: string; reason: string; }) ⇒ void |
(Optional) A connection refused at the CRYPTO layer by the (route, user) passphrase table — the handshake was rejected before could run, so this is the only visibility the application gets (probe / DoS auditing). Reasons: "unknown_route" | "unknown_user" | "no_grants" (the listener has no grants and was created with |
|
( status: SrtInputStatus, sourceName: string | undefined, index: number, health?: InputHealthStatus) ⇒ void |
(Optional) Called when the connection status has changed (e.g. when the SRT socket is closed) |
Properties
| Property | Type | Description |
|---|---|---|
boolean |
(Optional) Listener mode only: accept bonded callers — SRT connection bonding, SRT’s equivalent of ST 2022-7. A bonded caller dials this port over several links (typically different networks); in broadcast mode every packet travels every link and the first copy to arrive is kept, in backup mode one link carries the stream and the others stand by. Either way the connection survives a link failing, and each link’s health is reported in the connection’s stats ( Every link is checked against the listener’s streamid grants and passphrases, exactly as a single connection is. Callers that do not bond are unaffected. Both ends must support bonding; without this setting a bonded caller is refused. |
|
(Optional) Caller mode only: dial a bonded group of links instead of |
||
(Optional) Character set used to interpret CTA-708 P16 (16-bit) captions — for East-Asian services whose P16 code set is a legacy DBCS rather than Unicode. The code set is signalled out of band, so it must be chosen per input; it does not affect Latin/ASCII text. Defaults to |
||
boolean |
(Optional) ETR 101 290 (TR 101 290) monitoring notifications for this input. Default When Leave it off for sources that are not broadcast-grade: many cameras (e.g. Mevo, which sends a PCR every 120-160 ms against ETR 290’s 100 ms limit) break the limits continuously and harmlessly. Off, the analyser still runs and the Before this setting existed ETR 290 notifications were always on. |
|
string |
(Optional) The IP or hostname of the remote server. Optional in caller mode when SrtCommonInputSettings.resolve is set (the address is discovered). |
|
number |
(Optional) Input bandwidth (SRTO_INPUTBW) |
|
number |
(Optional) Listener mode only: how many sockets the listener binds on its port. An SRT listener normally receives every connection on its port through a single receive thread, which caps what one port can carry when many sources connect to it. With Linux only (ignored elsewhere). 1—32; unset or 1 means one socket, as before. At high aggregate bitrates the host’s UDP receive buffer limit matters as much as the socket count: with the Linux default |
|
number |
(Optional) Max bandwidth (SRTO_MAXBW) |
|
The mode to act in (caller or listener) |
||
(info: { port: number; }) ⇒ void |
(Optional) Called when a listener-mode SRT input binds to the interface |
|
(event: InputRecordingEvent) ⇒ void |
(Optional) Events from a recording of a source: see the node’s |
|
number |
(Optional) Overhead bandwidth (SRTO_OHEADBW) |
|
string |
(Optional) Passphrase for encryption |
|
number |
(Optional) libsrt’s native peer-idle timeout ( Breaking change: this previously drove an application-level "no media delivered" timer (default 500ms) that closed the socket when media stopped even while the SRT link was healthy. That timer has been removed; because libsrt keepalives keep the native timeout from firing on a media-only stall, this no longer reacts to "connected but no media". To act on a media stall, use the per-connection health event’s InputStreamHealth.lastMediaAgeMs (via RtmpServerInputSettings.onConnectionHealth-style callbacks) or a |
|
number |
(Optional) The latency value provided by the sender side as a minimum value for the receiver (SRTO_PEERLATENCY) |
|
number |
(Optional) The port to listen on in listener mode, or to connect to in caller mode In listener mode the port may be given as 0 to bind to an automatically assigned port, which can be retrieved in |
|
number |
(Optional) Optionally filter a single program from MPTS at decode time |
|
number |
(Optional) The latency value in the receiving direction of the socket (SRTO_RCVLATENCY) |
|
boolean |
(Optional) Whether decoded frames carry per-frame TR 101 290 (TS error) metrics. Only NorskInspect.qualityMonitoring() reads them; carrying them makes every frame’s quality-metrics map a per-frame allocation that is copied on each processing hop, so many-stream deployments that do no quality monitoring should set |
|
string |
(Optional) Caller mode only. When set, the remote endpoint is discovered from the node-local norsk-discovery service by this logical name (an SRT listener output’s ) rather than dialing a fixed |
|
(Optional) Record each source’s bytes as they arrive, from the start: see SourceRecordingSettings |
||
(Optional) when specified, drop data until the input is ticking at realtime |
||
number |
(Optional) Interval in milliseconds at which to sample SRT socket statistics. Stats feed metrics, so tune this to the rate at which you want metric updates. When unspecified a default is used. |
|
number |
(Optional) Interval in milliseconds at which to sample the underlying SRT socket’s connection state for the per-connection Note this does not drive : that callback fires on actual disconnection detection (a receive failure, including libsrt’s native peer-idle timeout breaking the link), not on this poll. |
|
string |
(Optional) Stream ID to set on the socket when acting in caller mode |
|
(Optional) Optional time-domain configuration. When set, the input is placed into a named coordinator and is timestamp-aligned with all other inputs sharing the same domain id within this Norsk instance. Omit for the default (uncoordinated) behaviour. |
||
boolean |
(Optional) |