#[non_exhaustive]pub struct UlpfecReceiveStats {
pub media_ssrc: u32,
pub fec_packets_in_red: u64,
pub fec_bytes_in_red: u64,
pub decoder: UlpfecDecoderStats,
}Expand description
What the ULPFEC decoder of one protected stream has received and done so far.
The receive interceptor passes it application-ward as Attribute::Custom on an empty
RTCP packet (a carrier, which the chain’s terminus lets through) whenever it changed, so
whoever drives the chain can report it: rtci’s peer connection puts it in the stream’s
webrtc-stats fecPacketsReceived, fecBytesReceived and fecPacketsDiscarded. The counts
are totals since the stream was bound, so a carrier that is lost loses nothing.
FEC on a repair SSRC or in a FEC session of its own arrives as packets of its own, which
the one who reads them off the wire can count; FEC blocks in RED packets of the media
stream (RFC 5109 section 14.2) are known only here, and are counted in
fec_packets_in_red.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.media_ssrc: u32The protected media stream.
fec_packets_in_red: u64FEC blocks that arrived in RED packets of the stream, whatever became of them.
fec_bytes_in_red: u64Their octets: the FEC header, the level headers and the protected data (the block, not the RED packet around it).
decoder: UlpfecDecoderStatsThe decoder’s counters: what it took, rebuilt and discarded, from every carriage.