pub struct FecSessionPacket {
pub media_ssrc: u32,
pub payload_type: u8,
pub one_level_only: bool,
}Expand description
Marks an RTP packet as a FEC packet that arrived in a FEC session of its own (RFC 5109
section 14.1), for a binder that learns which stream a FEC session protects only as its
packets arrive. Carried as Attribute::Custom.
Whoever drives the chain attaches it to each RTP packet read on a FEC session’s transport,
beside mapping the packet’s SSRC (FecSessionSsrcMap). The
receive interceptor gives such a packet to the decoder of
media_ssrc, if it keeps one (a bound stream that passed the filter,
UlpfecReceiveBuilder::sessions or the RED carriage), and passes it no further. It does
the same for a stream bound with StreamInfo::fec_session, which needs no mark.
Fields§
§media_ssrc: u32The SSRC of the media stream the FEC session’s stream protects: the SSRC the packet had on the FEC session’s transport (RFC 5109 section 7.2).
payload_type: u8The payload type of ulpfec in the FEC session’s m= section. A packet of the session
with another payload type is not FEC and is discarded (RFC 3550 section 5.1: a
receiver “MUST ignore packets with payload types that it does not understand”).
one_level_only: boolThis endpoint signalled onelevelonly=1 for the session (RFC 5109 section 13): FEC
with more than one level is refused.