TcpTsInputSettings interface

Settings for a TCP Transport Stream input. Norsk acts as the TCP client, connecting out to the configured host/port and reconnecting on failure. see: NorskInput.tcpTs()

Signature:

export interface TcpTsInputSettings extends RemoteInputSettings<TcpTsInputNode>, TsCommonInputSettings, StreamStatisticsMixin

Properties

Property Type Description

chaosDropPackets?

DropRandom

(Optional) Drop raw input data ala NorskTransform.streamChaosMonkey(). Leaving this undefined means don’t drop anything For testing, you really don’t want this in a live system.

healthSampling?

HealthSamplingSettings

(Optional) Per-input health sampling. Emits periodic TsConnectionHealth events via TsCommonInputSettings.onConnectionHealth. On by default; set enabled: false to disable or intervalSeconds to tune the cadence.

healthThresholds?

HealthThresholdsSettings | "recommended"

(Optional) Opt-in thresholds that turn the health samples into degraded / recovered events on TsCommonInputSettings.onHealthStatusChange, as SrtInputSettings.healthThresholds. Pass "recommended" for sensible defaults. stalledMs is judged as media goes missing, not on the next sample, so it can tell a failed source well before the input times out. Needs healthSampling (on by default).

lingerMs?

number

(Optional) Flush any gathered bytes after this many milliseconds of quiet rather than waiting for minReadBytes (default: 50)

minReadBytes?

number

(Optional) Minimum number of bytes to gather before passing data downstream (default: 1316, seven TS packets)

sourceRecording?

SourceRecordingSettings

(Optional) Record each source’s bytes as they arrive, from the start: see SourceRecordingSettings

startupThreshold?

InputThresholdSettings

(Optional) when specified, drop data until the input is ticking at realtime

timeout?

number

(Optional) Idle timeout in milliseconds - a connection that delivers no data for this long is dropped and reconnected (default: 1000)