Options

class Options(val latencyMs: Int = 120, val connectTimeoutMs: Int = 3000, val passphrase: String? = null, val streamId: String? = null)

Default native socket configuration. Typed durations are milliseconds; URI latency uses microseconds and is rounded up to whole milliseconds.

Throws

If a duration or string length is invalid.

Constructors

Link copied to clipboard
constructor(latencyMs: Int = 120, connectTimeoutMs: Int = 3000, passphrase: String? = null, streamId: String? = null)

Properties

Link copied to clipboard

Caller/rendezvous handshake timeout, greater than zero. This does not limit a listener's wait for its first peer or DNS resolution.

Link copied to clipboard

Requested receiver/peer latency, at least zero.

Link copied to clipboard

Optional encryption passphrase of 10–79 UTF-8 bytes.

Link copied to clipboard

Optional SRT stream identifier, at most 512 UTF-8 bytes.