rtci-interceptor
A composable pipeline of RTP / RTCP processors ("interceptors") between the application and the wire: the RTCP session (sender and receiver reports, SDES, BYE, compound packets and their timing), NACK generation and retransmission (with RTX), transport-wide congestion control feedback, bandwidth estimation (GCC), pacing, FEC encoders and decoders, a jitter buffer, key-frame requests and RTCP extended reports.
Specifications
- RFC 3550, RTP and its RTCP timing rules; RFC 4585, RTP/AVPF feedback
- RFC 4588, RTP retransmission; RFC 5104, codec control messages
- RFC 8888, RTCP congestion control feedback; draft-holmer-rmcat-transport-wide-cc-extensions
- draft-ietf-rmcat-gcc, Google congestion control
- RFC 8627 and draft-ietf-payload-flexible-fec-scheme-03, FlexFEC; RFC 5109, ULPFEC
- RFC 3611, RTCP extended reports; RFC 6679, ECN for RTP; RFC 8083, circuit breakers
- RFC 5506, reduced-size RTCP; RFC 7022, CNAMEs; RFC 7728, pause and resume; RFC 8108, multiple streams
Clause-by-clause status, with the test that proves each clause: rfc3550, rfc4585, rfc4588, rfc8888, draft-ietf-rmcat-gcc, rfc8627, rfc5109, rfc3611.
Use
Registry assembles a chain from builders (NackGeneratorBuilder, TwccSenderBuilder,
RtcpSessionBuilder, ...); the root crate (rtci) builds one per peer connection from its
interceptor_registry configuration. A new interceptor implements the traits with the
derive macros of rtci-interceptor-derive. The crate documentation describes the chain's
direction rules and has a quick-start example.
Sans-I/O
Each interceptor is a sansio::Protocol: packets in, packets out, timeouts polled and handled. The crate does no I/O and reads no clock: every call that depends on time takes an Instant from the caller.
Licence
Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.
This crate is part of the rtci workspace, which descends from
webrtc-rs/rtc and is developed independently;
FORK.md lists what it carries over upstream. Upstream's licence and copyright
notices are retained.