pub struct PacerDiscard {
pub ssrc: u32,
pub sequence_numbers: Vec<u16>,
pub frames: u32,
pub octets: usize,
pub target_bitrate: f64,
}Expand description
Media the pacer discarded for want of room in the target (QueueOverflow::Drop): whole
frames of one stream (see “Discarding media” on PacerInterceptor).
The pacer sends it application-ward, on an empty RTCP carrier on its read leg, at the
instant of the discard. The NACK responder removes the packets named here from its
retransmission buffer (a NACK for them is answered by nothing) and from the original
packets it counts against the target (they never used the link); the peer connection
hands it to the application as RTCPeerConnectionEvent::OnPacerDiscard. It means the
source is above the target: what the application writes has to come down to the target
it is given (Attribute::TargetBitrateChanged, RTCRtpSender::target_bitrates). Read with
AttributedPacket::custom.
Fields§
§ssrc: u32The stream the packets were of.
sequence_numbers: Vec<u16>The sequence numbers of the packets discarded, oldest first.
frames: u32How many frames were discarded (0 when these packets are the rest of a frame already discarded).
octets: usizeThe octets of the packets discarded (RTP header and payload).
target_bitrate: f64The pacer’s target at the discard, bits per second.