Skip to main content

Module srt

Module srt 

Source
Expand description

SRT listener over srt-tokio (ARQ, TSBPD, optional AES). Rust owns the handshake, stream-ID parsing, one publisher per resource and the relay to every reader of it; the handler admits each caller and can push text messages to a reader.

Modules§

actions
streamid
SRT stream IDs: the access-control syntax (#!::r=live/cam,m=publish,u=alice, SRT AccessControl.md) and the publish:path / read:path form MediaMTX uses.

Constants§

DEFAULT_LATENCY
IDLE_TIMEOUT
MAX_READERS
REJECT_CODES
Handler-facing reject reasons and their SRT server reject codes.

Functions§

announce_mss
srt-tokio 0.4.4 announces its live payload size (1316) in the handshake’s MSS field, where libsrt expects the MTU, so a libsrt peer limits itself to 1272-byte messages and cannot send the standard 1316 (seven TS packets). Raising the payload size to the live maximum, 1456, makes the announced MSS large enough for that; NetGet’s own messages are 1316 bytes either way.
spawn