SrtDedicatedPortOutputSettings interface
An SRT egest that owns its own port: today’s shape, and the default. Either mode may be used, and host/port are the endpoint this output listens on or calls out to.
see: NorskOutput.srt()
Signature:
export interface SrtDedicatedPortOutputSettings extends SrtOutputSettingsCommon
Extends: SrtOutputSettingsCommon
Events
| Property | Type | Description |
|---|---|---|
(info: { name: string; reason: string; }) ⇒ void |
(Optional) Called when the SrtDedicatedPortOutputSettings.publishedName configured on this output was not published, so nothing using This is not a failure of the output. It keeps streaming, and anything configured with an explicit address still reaches it; what is lost is only the name. Nothing retries: whether a name is worth waiting for depends on what the name is for, which only your code knows. To retry, publish again under a name you know to be free. This callback is the durable record. The engine also raises a node notification, which surfaces in the visualiser and on the notification bus, but that is an event rather than a standing alert — it ages out after a few seconds. If you do not supply this callback the failure is logged to the console rather than passing silently. |
Properties
| Property | Type | Description |
|---|---|---|
boolean |
(Optional) Listener mode only: accept bonded consumers — SRT connection bonding (see SrtBondingSettings). A bonded consumer dials this port over several links and is sent every packet on each (broadcast), or on its active link (backup), so it rides out a link failing. Every link is checked against this output’s streamid grants and passphrases like any other connection. Consumers that do not bond are unaffected. |
|
string |
The IP address or hostname to listen on in listener mode, or to connect to in caller mode |
|
number |
(Optional) Listener mode only: how many sockets this output binds on its port, each with its own SRT receive and send threads; consumers are spread across them by the operating system. Useful when one output has many consumers. The port, stream IDs and passphrases are unchanged. Linux only (ignored elsewhere). 1—32; unset or 1 means one socket. |
|
The mode to act in (see SrtMode) |
||
(info: { port: number; }) ⇒ void |
(Optional) Called when a listener-mode SRT output binds to the interface |
|
string |
(Optional) Passphrase for encryption |
|
number |
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 |
|
"non-multiplexed" |
(Optional) How this output gets a port. Omitted (or |
|
string |
(Optional) Listener mode only. When set, once the socket is bound this output publishes its presence to the node-local norsk-discovery service under this logical name, so an SRT caller elsewhere can resolve it (see ) instead of being wired to a fixed address — useful when the port is auto-allocated ( |
|
boolean |
(Optional) Listener mode only: fail closed on the access grants (SrtOutputNode.addPassphrase()). By default an output with NO grants accepts every consumer, so removing the last grant reopens it to anyone. With |
|
string |
(Optional) Stream ID to set on the socket when acting in caller mode |