SrtMultiplexEgestSettings interface
The settings for an SRT multiplex — see NorskOutput.srtMultiplex().
Signature:
export interface SrtMultiplexEgestSettings
Events
| Property | Type | Description |
|---|---|---|
(info: { port: number; }) ⇒ void |
(Optional) Called when the multiplex binds its port. Also the way to learn the port when 0 was requested — though SrtMultiplexEgest.port carries the same number once the multiplex has started. |
|
(rejection: { streamId: string; route: string; user?: string; remoteHost: string; reason: string; }) ⇒ void |
(Optional) A consumer refused at the handshake because no output on this multiplex holds a grant for its (route, user) — either the route names no output, or that output has not granted that user. Grants live on the outputs, so this is where a misdirected consumer shows up rather than on the output it was aiming at. |
Properties
| Property | Type | Description |
|---|---|---|
boolean |
(Optional) Accept bonded consumers on the shared port — SRT connection bonding (see SrtBondingSettings). Each link is routed to its output and checked against that output’s grants like any other connection. |
|
string |
The IP address or hostname to listen on |
|
string |
Names this multiplex to the outputs that share it. Unique within the instance: a second multiplex claiming the same id fails to start. |
|
number |
(Optional) Input bandwidth (SRTO_INPUTBW) |
|
number |
(Optional) How many sockets the multiplex binds on its port, each with its own SRT receive and send threads; consumers are spread across them by the operating system. Every output sharing the multiplex sends through it, so with one socket all of their consumers' traffic goes through one send thread. Routes, grants and the port are unchanged. Linux only (ignored elsewhere). 1—32; unset or 1 means one socket. |
|
number |
(Optional) Max bandwidth (SRTO_MAXBW) |
|
(() ⇒ Promise<void>) | (() ⇒ void) |
(Optional) |
|
(error: Error) ⇒ void |
(Optional) |
|
number |
(Optional) Overhead bandwidth (SRTO_OHEADBW) |
|
number |
(Optional) The latency value provided by the sender side as a minimum value for the receiver (SRTO_PEERLATENCY) |
|
number |
The port to listen on, shared by every output that uses this multiplex. May be 0 to bind an automatically assigned port, which is then reported to |
|
number |
(Optional) The latency value in the receiving direction of the socket (SRTO_RCVLATENCY) |
|
boolean |
(Optional) Whether to enable the too-late-packet-drop mechanism (SRTO_TLPKTDROP) - default true. |