pub struct UlpfecRepair;Expand description
Marks an RTP packet that carried only FEC in a RED stream.
Such a packet has a sequence number of the media stream. Whoever counts the stream’s
sequence numbers must see that number as received: the interceptors application-ward of the
FEC decoder (the NACK generator, the receiver report, the arrival recorders), and the
receiver that puts frames together, for which a number that never arrives is a missing
media packet (a frame with one inside it is never complete; one between two frames is
waited for). So the packet is passed on, with its payload removed and this attached as
Attribute::Custom, instead of being swallowed. It is not media: it goes on as a packet
without a payload, under the payload type of the stream’s media (the primary block of
the last media packet; the FEC payload type before any media arrived), with the FEC
packet’s sequence number, timestamp and no marker. That is what a padding packet of
libwebrtc’s looks like, and what libwebrtc’s own receiver makes of a FEC packet
(video/rtp_video_stream_receiver2.cc:1603-1612 at a222406d, “Notify video_receiver about
received FEC packets to avoid NACKing these packets”: NotifyReceiverOfEmptyPacket, which
is PacketBuffer::InsertPadding and the NACK module’s OnReceivedPacket, :1622-1637).
rtci’s peer connection delivers it to the application so; an application driving a chain
itself can tell it by message.custom::<UlpfecRepair>().