SrtInputNode class

Signature:

export declare class SrtInputNode extends SourceMediaNode

Extends: SourceMediaNode

Methods

Method Modifiers Description

addPassphrase(grant)

Adds or updates a (route, user) access grant on this listener. The route is the streamid’s r= value (or the bare streamid); the user is claimed via u= in the streamid and PROVEN by the passphrase (omit user for the anonymous identity). Omit passphrase for an explicit clear-allowed grant — protected and clear streams then share one listener. Once the table is non-empty every connection must match a grant; register grants before sources connect. Listener mode only.

closeStream(streamIndex)

Closes a connected stream as specified by 'streamIndex'

nudge(sourceName, programNumber, nudge)

Applies a gradual nudge to the outgoing stream timestamps by the specified number of milliseconds

removePassphrase(grant)

Removes a (route, user) access grant from this listener (omit user for the anonymous identity).