pub struct FecSent {
pub media_ssrc: u32,
pub packets: u32,
pub bytes: u64,
}Expand description
FEC carried by an outgoing RTP packet, attached by the FEC encoder that wrote it
(Attribute::Custom).
The packet may be a FEC packet of its own (a separate stream, a FEC session’s stream, a
FlexFEC repair packet, a RED packet holding only FEC) or a media packet in RED that FEC
rides with (RFC 5109 section 14.2), so the count is the FEC it holds, not one per packet.
Read where packets leave the chain, it counts what the pacer and the circuit breaker let
through: rtci’s peer connection reports it as the FEC sent for media_ssrc
(RTCPeerConnection::fec_stats).
Fields§
§media_ssrc: u32The media stream the FEC protects (the first of them, for FlexFEC protecting several).
packets: u32FEC packets, or FEC blocks of a RED packet, in this packet.
bytes: u64Their octets: the FEC payloads (FEC and level headers, or the FlexFEC header, and the repair data), not the RTP or RED headers around them.