#[non_exhaustive]pub enum PacerBacklog {
Flush,
Keep,
}Expand description
What the pacer does with what it holds when the path’s capacity collapses: the target has
fallen to half or less of what it was when the queued media was written or within the
queue time bound, and the queue would now take half the queue time bound or more to leave (see “A capacity collapse” on
PacerInterceptor). It applies with QueueOverflow::Drop; QueueOverflow::Drain
never discards.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Flush
The queue is given up: the media and retransmissions waiting are discarded
(PacerDiscard, RetransmissionsLeft), the NACK responder is told to forget what
was sent before (PacerFlush) and the application is asked for a key frame of every
video stream. The receiver’s next picture is a current one, a key frame sized for the
new rate, in place of seconds of frames sized for the old one delivered in order.
RFC 8834 section 6.1: “It is not appropriate to blindly retransmit RTP packets in
response to a NACK. The importance of lost packets and the likelihood of them arriving
in time to be useful need to be considered”; RFC 4588 section 7: the sender “MAY
selectively retransmit only the packets that it deems important”.
Keep
The source is paused and everything queued is delivered in order, with every
retransmission asked for (“Pausing the source” on PacerInterceptor): for a receiver
that plays strictly in order and cannot resume at a key frame. After a sharp drop the
picture such a receiver shows is seconds old.
“Keep and repair everything” is one choice for a whole chain: the default interceptor
set (DefaultInterceptorOptions::pacer_backlog) also switches off the NACK
responder’s own rules that give repairs up
(NackResponderBuilder::with_max_repair_age,
with_repair_backlog_bound).
A chain built by hand sets both to None on its responder.