You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add RFC 2198 RED (redundant audio) support for Opus
A default-off `RtcConfig::enable_red` negotiates RFC 2198 RED for Opus,
modeled on RTX: a `Codec::Red` marker and a `PayloadParams.red` linkage
folded onto the primary codec in SDP (`red/48000/2` and `fmtp <opus>/<opus>`),
kept only when both peers offer it.
In frame mode RED is transparent. Outgoing Opus is wrapped with one level of
redundancy (the previous frame); incoming RED is unwrapped back to Opus and a
single lost packet is recovered from the next packet's redundancy. In rtp mode
the RED packets pass through unchanged, and `RedEncoder`/`RedDecoder` are
exposed for callers that want to build or parse RED themselves.
A self-contained `packet::red` codec does the byte-level RFC 2198 work and is
fuzzed; recovered packets reuse the existing depayload path and the jitter
buffer's de-duplication.
0 commit comments