NorskInput.srtConnection() method

Take over one accepted connection of an SRT listener running connectionOwnership: "perConnection" as a source node of its own.

Create it after accepting the connection in the listener’s onConnection (the two are unordered on the wire; a claim that arrives first waits for its accept). The node then owns that connection — subscribe to it for the media; its TS context, tables, statistics, health and disconnected all arrive on this node’s callbacks; close() closes the connection. The node lives exactly as long as the connection. Rejected with ALREADY_EXISTS when the connection is already owned, NOT_FOUND for an unknown connection, and ABORTED when it went away or was not accepted within the listener’s claimTimeoutMs.

Signature:

srtConnection(settings: SrtConnectionInputSettings): Promise<SrtConnectionInputNode>;

Parameters

Parameter Type Description

settings

SrtConnectionInputSettings

Which listener connection to take over, and how to report it

Returns:

Find Examples