SrtMultiplexEgest class

A shared SRT listener port. It carries no media and is not a media node: nothing subscribes to it and it appears in no workflow. It owns a port, and the SRT outputs configured with portMode: "multiplexed" reach their consumers over it, each identified by its own route.

One port instead of one per output is the point: libsrt gives every bound port its own send and receive threads, so collapsing many outputs onto a few ports removes threads and the context switching that comes with them. Shard across several multiplexes rather than putting everything on one — those threads are per port and serial across the connections on it.

The port lives as long as this object: SrtMultiplexEgest.close(), or closing the Norsk instance, drops it and every consumer connected over it.

Signature:

export declare class SrtMultiplexEgest

Properties

Property Type Description

id

string

The id outputs use to name this multiplex

port

number

The bound port — the requested one, or the assigned one when 0 was asked for

Methods

Method Modifiers Description

close()

Closes the multiplex and its port. Outputs using it keep running but become unreachable, and their connected consumers are dropped.