Skip to content

@seydx/rtsp / AvReconnectOptions

Interface: AvReconnectOptions

Defined in: sources/av.ts:130

Backoff tuning for AvSourceOptions.reconnect.

Controls how aggressively the source retries reopening its input after a read failure. Every field is optional; the defaults reconnect quickly at first and back off exponentially so an unreachable camera is not hammered.

Properties

delayMs?

optional delayMs?: number

Defined in: sources/av.ts:137

Initial delay before the first reopen attempt, in milliseconds.

Doubled on every consecutive failed attempt up to AvReconnectOptions.maxDelayMs. Defaults to 1000.


maxDelayMs?

optional maxDelayMs?: number

Defined in: sources/av.ts:144

Upper bound for the exponential backoff delay, in milliseconds.

Defaults to 30000.


maxRetries?

optional maxRetries?: number

Defined in: sources/av.ts:153

Maximum number of consecutive failed attempts before giving up.

Counts attempts since the last successfully delivered packet; once exceeded, the original error is thrown to the consumer. Defaults to unlimited retries.