rtci-interceptor
Sans-I/O RTP/RTCP interceptor pipeline for WebRTC: RTCP reports, NACK, TWCC, congestion control, pacing, FEC. 1 public module, 333 items at 0.5.0.
cargo add [email protected] · crates.io · docs.rs · README on GitHub· MSRV 1.89
README
A composable pipeline of RTP / RTCP processors ("interceptors") between the application and the wire: the RTCP session (sender and receiver reports, SDES, BYE, compound packets and their timing), NACK generation and retransmission (with RTX), transport-wide congestion control feedback, bandwidth estimation (GCC), pacing, FEC encoders and decoders, a jitter buffer, key-frame requests and RTCP extended reports.
Specifications
- RFC 3550, RTP and its RTCP timing rules; RFC 4585, RTP/AVPF feedback
- RFC 4588, RTP retransmission; RFC 5104, codec control messages
- RFC 8888, RTCP congestion control feedback; draft-holmer-rmcat-transport-wide-cc-extensions
- draft-ietf-rmcat-gcc, Google congestion control
- RFC 8627 and draft-ietf-payload-flexible-fec-scheme-03, FlexFEC; RFC 5109, ULPFEC
- RFC 3611, RTCP extended reports; RFC 6679, ECN for RTP; RFC 8083, circuit breakers
- RFC 5506, reduced-size RTCP; RFC 7022, CNAMEs; RFC 7728, pause and resume; RFC 8108, multiple streams
Clause-by-clause status, with the test that proves each clause: rfc3550, rfc4585, rfc4588, rfc8888, draft-ietf-rmcat-gcc, rfc8627, rfc5109, rfc3611.
Use
Registry assembles a chain from builders (NackGeneratorBuilder, TwccSenderBuilder, RtcpSessionBuilder, ...); the root crate (rtci) builds one per peer connection from its interceptor_registry configuration. A new interceptor implements the traits with the derive macros of rtci-interceptor-derive. The crate documentation describes the chain's direction rules and has a quick-start example.
The congestion controller's target in a peer connection. rtci's default interceptors run the GCC estimator (Gcc in a CongestionControlInterceptor, one per transport) with the pacer. Read the target from the handles rtci's register_default_interceptors_with_handles returns (DefaultInterceptorHandles:: congestion_control, CongestionControlHandle::target_bitrate), or per encoding from RTCRtpSender::target_bitrates. GccInterceptorBuilder and its GccHandle are for a chain assembled by hand: build() returns a factory closure for Interceptor::with (PassThroughInterceptor::new().with(builder.build())), and a GccInterceptor put in a default registry replaces the per-transport controller (see GccInterceptorBuilder).
Sans-I/O
Each interceptor is a sansio::Protocol: packets in, packets out, timeouts polled and handled. The crate does no I/O and reads no clock: every call that depends on time takes an Instant from the caller.
Licence
Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.
This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.
rtci_interceptor
RTC Interceptor - Sans-IO interceptor framework for RTP/RTCP processing.
- struct
AbsSendTimeInterceptorfromgcc::remb::AbsSendTimeInterceptorStamps the abs-send-time header extension on every packet of a local stream that negotiated it (see thegcc::rembmodule's source documentation): 6.18 fixed-point seconds of the instant the packet passes, which is as it leaves the pacer when the interceptor sits below it (the default set puts it atSlot::Custom(1_900)). - struct
Acknowledgementfromrtpfb::acknowledgement::AcknowledgementOne packet's fate, as reported by the receiver. - struct
AdaptiveThresholdfromgcc::threshold::AdaptiveThresholdA threshold that follows the trend it is judging. - struct
ArrivalGroupfromgcc::arrival_group::ArrivalGroupA run of packets that departed together, and when they turned up. - struct
ArrivalGroupAccumulatorfromgcc::arrival_group::ArrivalGroupAccumulatorCollects acknowledgements into bursts and emits the gradient between consecutive bursts. - struct
AttributedPacketfrompacket::AttributedPacketA packet together with what the interceptors have learned about it. - struct
BitArrayfromflexfec::bit_array::BitArrayA 128-bit mask, indexed from the most significant bit. - struct
CallQualityfromxr::CallQualityThe call quality figures of the VoIP Metrics block (RFC 3611 section 4.7.5), which come from a call quality model of the decoded media (ITU-T G.107 / ETSI TS 101 329-5): the application's to compute, as the engine does not decode. Given toXrReportHandle::set_call_quality.None, or a value outside the field's range, is sent as 127, "unavailable" (section 4.7.5: other values "MUST not be … - struct
CcFeedbackRecorderfromrfc8888::recorder::CcFeedbackRecorderRecords packet arrivals per stream and builds feedback reports from them. - struct
CircuitBreakerBuilderfromcircuit_breaker::CircuitBreakerBuilderBuilder forCircuitBreakerInterceptor. - struct
CircuitBreakerHandlefromcircuit_breaker::CircuitBreakerHandleThe application's view of the circuit breaker, and its way to restart a ceased flow. - struct
CircuitBreakerInterceptorfromcircuit_breaker::CircuitBreakerInterceptorThe RTP circuit breaker of RFC 8083: stops a flow whose receiver has gone, whose media is not arriving, or that is persistently taking far more than its share. - struct
CircuitBreakerNoticefromcircuit_breaker::CircuitBreakerNoticeThe circuit breaker ceased or restarted a flow (RFC 8083 section 4.5). - struct
CongestionControlBuilderfromcc::interceptor::CongestionControlBuilderBuilder forCongestionControlInterceptor. - struct
CongestionControlHandlefromcc::interceptor::CongestionControlHandleThe application's end of the congestion controller: the estimate, pulled when the encoder wants it, and the limits only the application knows. - struct
CongestionControlInterceptorfromcc::interceptor::CongestionControlInterceptorRecords every departing packet, resolves the remote's feedback against it, and drives aBandwidthEstimator. - struct
ConstantBitratefromcc::estimator::ConstantBitrateAn estimator that always says the same number. - struct
DelayTrendfromgcc::slope::DelayTrendOne filtered delay-gradient reading. - struct
EcnValidationfromrfc8888::ecn::EcnValidationRFC 6679 sections 7.2-7.4 for one RTP stream, fed from RFC 8888 reports. See the module documentation. - struct
EstimatorStatsfromcc::estimator::EstimatorStatsWhat an estimator is willing to say about itself. - struct
FecRatefromcc::fec_rate::FecRateThe loss-driven amount of FEC for one sender. See the module documentation. - struct
FecSentfromfec_sent::FecSentFEC carried by an outgoing RTP packet, attached by the FEC encoder that wrote it (Attribute::Custom). - struct
FecSessionSsrcMapfromfec_session::FecSessionSsrcMapMaps the SSRCs of a FEC session (RFC 5109 section 14.1) between the wire and the chain; see thefec_sessionmodule's source documentation. - struct
FecSessionStreamfromstream_info::FecSessionStreamThe FEC stream of a media stream, sent in a separate RTP session (RFC 5109 section 14.1: "the FEC stream and the payload stream SHOULD be sent through two separate RTP session"). - struct
FeedbackTimelinefromrtpfb::convert::FeedbackTimelineThe receiver's clock as successive feedback reports give it, without the wraps. - struct
FirCommandsfromkeyframe::FirCommandsThe FIR commands an endpoint sends (RFC 5104 section 4.3.1): each new command for a media sender takes the next command sequence number (modulo 256), a repetition keeps it, and the "SSRC of media source" field of the packet is zero, the target being in the FCI. - struct
FlexFec03Decoderfromflexfec::draft03::decoder::FlexFec03DecoderRecovers media packets lost from a stream protected by FlexFEC draft-03. - struct
FlexFec03Encoderfromflexfec::draft03::encoder::FlexFec03EncoderBuilds FlexFEC draft-03 repair packets. - struct
FlexFec03ReceiveBuilderfromflexfec::draft03::receiver::FlexFec03ReceiveBuilderBuilder forFlexFec03ReceiveInterceptor. - struct
FlexFec03ReceiveInterceptorfromflexfec::draft03::receiver::FlexFec03ReceiveInterceptorRecovers media lost from streams protected by FlexFEC draft-03. - struct
FlexFec03SendBuilderfromflexfec::draft03::sender::FlexFec03SendBuilderBuilder forFlexFec03SendInterceptor. - struct
FlexFec03SendInterceptorfromflexfec::draft03::sender::FlexFec03SendInterceptorProduces FlexFEC draft-03 repair packets for outgoing media. - struct
FlexFecBlockfromflexfec::rfc8627::header::FlexFecBlockOne block of an R=0 FEC header: the source stream (taken from the repair packet's CSRC list), its SN base, and the mask or L/D that follows. - struct
FlexFecDecoderfromflexfec::rfc8627::decoder::FlexFecDecoderRecovers lost source packets from RFC 8627 FlexFEC repair packets (flexfec, notflexfec-03): flexible masks, fixed L/D rows and columns (1-D and 2-D, decoded iteratively), retransmissions, and repair packets that protect several source streams. - struct
FlexFecDecoderConfigfromflexfec::rfc8627::decoder::FlexFecDecoderConfigBounds on what aFlexFecDecoderkeeps, all of them derived from the repair window the session agreed to (RFC 8627 sections 1.1.2 and 9). - struct
FlexFecDecoderStatsfromflexfec::rfc8627::decoder::FlexFecDecoderStatsCounters aFlexFecDecoderkeeps about itself. - struct
FlexFecEncoderfromflexfec::rfc8627::encoder::FlexFecEncoderBuilds RFC 8627 FlexFEC repair packets: the format negotiated asflexfec(video/flexfecand the other three media types of RFC 8627 section 5.1), notflexfec-03. - struct
FlexFecParametersfromflexfec::rfc8627::params::FlexFecParametersThe parameters of an RFC 8627flexfecpayload type beyond its clock rate. - struct
FlexFecReceiveBuilderfromflexfec::rfc8627::receiver::FlexFecReceiveBuilderBuilder forFlexFecReceiveInterceptor. - struct
FlexFecReceiveInterceptorfromflexfec::rfc8627::receiver::FlexFecReceiveInterceptorRecovers media lost from streams protected by RFC 8627 FlexFEC (flexfec, notflexfec-03). - struct
FlexFecSendBuilderfromflexfec::rfc8627::sender::FlexFecSendBuilderBuilder forFlexFecSendInterceptor. - struct
FlexFecSendInterceptorfromflexfec::rfc8627::sender::FlexFecSendInterceptorProduces RFC 8627 FlexFEC repair packets (flexfec, notflexfec-03) for outgoing media. - struct
FlowCodepointsfromcc::estimator::FlowCodepointsThe DSCP each stream the connection sends is marked with (RFC 8837 Table 1: by the flow's type and the encoding'snetworkPriority/priority; RTX and FEC streams with their encoding's codepoint; 0 for a flow the DSCP fallback turned back, RFC 8835 section 4.2), as (SSRC, DSCP). The congestion control interceptor hands it to its estimator (BandwidthEstimator::on_flow_codepoints); a stream … - struct
Gccfromgcc::estimator::GccGoogle Congestion Control. - struct
GccHandlefromgcc::twcc_gcc::GccHandleRead-only handle to the latest GCC bandwidth estimate. - struct
GccInterceptorfromgcc::twcc_gcc::GccInterceptorSender-side GCC bandwidth estimator interceptor. - struct
GccInterceptorBuilderfromgcc::twcc_gcc::GccInterceptorBuilderBuilder forGccInterceptor, for a chain assembled by hand. - struct
Historyfromrtpfb::history::HistoryRecords outgoing packets and matches incoming feedback against them. - struct
InterGroupDelayfromgcc::arrival_group::InterGroupDelayThe delay gradient between two consecutive groups. - struct
IntervalPliInterceptorfromintervalpli::generator::IntervalPliInterceptorRequests a keyframe from every bound remote stream on a fixed interval. - struct
JitterBufferfromjitterbuffer::buffer::JitterBufferA single stream's packets, ordered by extended sequence number. - struct
JitterBufferBuilderfromjitterbuffer::receiver::JitterBufferBuilderBuilder forJitterBufferInterceptor. - struct
JitterBufferControlfromadaptive_jitter_buffer::JitterBufferControlThe application's jitter buffer target for the streams of one receiver (W3C webrtc 5.3jitterBufferTarget): written into the chain (into_packet), the jitter buffer takes it for each SSRC, now or when the stream is bound, and holds those streams' packets fortargetclamped to its minimum and maximum delay instead of its adaptive target;Nonereturns them to the adaptive target. Consumed … - struct
JitterBufferDiscardsfromjitterbuffer::discards::JitterBufferDiscardsThe packets each remote stream's jitter buffer discarded, shared by a jitter buffer and the XR generator: give the same handle toJitterBufferBuilder::with_discard_count(orAdaptiveJitterBufferBuilder::with_discard_count) and toXrReportBuilder::with_jitter_buffer_discards, and the VoIP Metrics block's discard rate is the buffer's (RFC 3611 section 4.7.1). Without it the generator … - struct
JitterBufferInterceptorfromjitterbuffer::receiver::JitterBufferInterceptorHolds each stream's packets for a fixed span of time, then releases them in order. - struct
JitterBufferMetricsfromxr::JitterBufferMetricsThe jitter buffer the application plays a stream out of, for the VoIP Metrics block (RFC 3611 section 4.7.7). The engine does not play media out, so it cannot know these itself. - struct
JitterBufferStatsfromjitterbuffer::buffer::JitterBufferStatsCounters describing what a buffer has had to cope with. - struct
Kalmanfromgcc::kalman::KalmanKalman filter over the one-way delay gradient, per draft-ietf-rmcat-gcc-02 §5.3. - struct
KeyFrameRequestInterceptorfromkeyframe::KeyFrameRequestInterceptorMarks inbound RTCP that asks for a key frame — a Picture Loss Indication (RFC 4585 §6.3.1) or a Full Intra Request (RFC 5104 §4.3.1) —Attribute::DeliverToApplication, so it passes the chain's terminus (NoopInterceptor) instead of ending there. - struct
LossControllerfromgcc::loss::LossControllerLoss-based congestion control, per draft-ietf-rmcat-gcc-02 §5.5. - struct
MediaUsabilityfromcircuit_breaker::MediaUsabilityThe application's bound on what is still usable media (section 4.4). The RFC leaves the bound to the application on purpose. - struct
MinimumTargetfromnack::responder::MinimumTargetRides withAttribute::TargetBitrateChanged: the congestion controller's minimum bit rate, the floor its target never goes under. Where lowering the original media by the retransmission reserve would take it under this floor the NACK responder lets the retransmissions take the window's room first (RetransmissionRateLimit::WithinTarget). Read withAttributedPacket::custom. - struct
NackGeneratorBuilderfromnack::generator::NackGeneratorBuilderBuilder for the NackGeneratorInterceptor. - struct
NackGeneratorInterceptorfromnack::generator::NackGeneratorInterceptorInterceptor that generates NACK requests for missing RTP packets. - struct
NackResponderBuilderfromnack::responder::NackResponderBuilderBuilder for the NackResponderInterceptor. - struct
NackResponderInterceptorfromnack::responder::NackResponderInterceptorInterceptor that responds to NACK requests by retransmitting packets. - struct
NoopInterceptorfromnoop::NoopInterceptorDecides what becomes of inbound RTCP once the interceptors have had it, and passes everything else through. - struct
NtpTimestampBuilderfromntp_timestamp::NtpTimestampBuilderBuilder forNtpTimestampInterceptor. - struct
NtpTimestampInterceptorfromntp_timestamp::NtpTimestampInterceptorStamps an RFC 6051 NTP-format timestamp on the packets of local streams that negotiatedntp-64orntp-56; see thentp_timestampmodule's source documentation for which packets. - struct
OveruseDetectorfromgcc::overuse::OveruseDetectorTurns a filtered delay trend into aUsage, with hysteresis. - struct
Pacerfrompacing::pacer::PacerA token bucket in bits, refilled from elapsed time. - struct
PacerBuilderfrompacing::sender::PacerBuilderBuilder forPacerInterceptor. - struct
PacerDiscardfrompacing::sender::PacerDiscardMedia the pacer discarded for want of room in the target (QueueOverflow::Drop): whole frames of one stream (see "Discarding media" onPacerInterceptor). - struct
PacerFlushfrompacing::sender::PacerFlushThe pacer gave its queue up at a collapse of the target (Backlog::Flush, see "A capacity collapse" onPacerInterceptor): sent application-ward on an empty RTCP carrier, after thePacerDiscardof each stream that had media queued. The NACK responder forgets everything sent before it on the streams named (their retransmission buffers, the requests waiting): a NACK for any of it is answered … - struct
PacerInterceptorfrompacing::sender::PacerInterceptorReleases queued packets at a target rate rather than as fast as they arrive. - struct
PacerPausefrompacing::sender::PacerPauseRides a target of zero (Attribute::TargetBitrateChanged) that the pacer hands application-ward while it tells the source to pause (see "Pausing the source" onPacerInterceptor): the congestion controller's target, for what application-ward of the pacer needs the rate the path carries (the NACK responder's retransmission rate limit). Read withAttributedPacket::custom. - struct
PacerPrioritiesfrompacing::sender::PacerPrioritiesThe streams' weights in the pacer's share by priority (see "Order of service" onPacerInterceptor): each media SSRC with the weight of its encoding's priority, each level twice the level below (RFC 8835 section 4.1; the peer connection gives very-low 1, low 2, medium 4, high 8). A bound stream's RTX and FEC streams weigh with it; a stream not named weighs 2 (low, the W3C default). Each … - struct
PacketReportfromrtpfb::acknowledgement::PacketReportOne outgoing packet, joined with whatever the receiver later said about it. - struct
PassThroughInterceptorfrompass_through::PassThroughInterceptorHands every packet on unchanged, in both directions: the inner end of a nested interceptor (one written with theInterceptorderive, such asGccInterceptor) placed in aRegistryslot. - struct
PathChangedfromrtp_session::PathChangedA control message: the transport moved to another selected candidate pair (an ICE restart, a switch to another pair, a move to another network), after its first one. The peer connection reads it into the chain on the read leg, as an empty RTCP packet (PathChanged::into_packet), so it passes the congestion controllers first: they sit wire-most. Each starts its estimate over and forgets what … - struct
PauseCapabilityfrompause_resume::PauseCapabilityWhat a negotiatedccm pauseline says (RFC 7728 section 9, Figure 8):pause, thennowaitandconfig=<n>in any order; unknown attributes are ignored ("Unknown pause attributes MUST be ignored"). - struct
PauseResumeBuilderfrompause_resume::PauseResumeBuilderBuilder forPauseResumeInterceptor. - struct
PauseResumeHandlefrompause_resume::PauseResumeHandleThe application's side ofPauseResumeInterceptor: asks a remote stream to pause or resume, pauses its own streams by local decision, and reads where each stream is. A request takes effect at the interceptor's next timeout, which the interceptor asks for at once. - struct
PauseResumeInterceptorfrompause_resume::PauseResumeInterceptorRFC 7728 pause and resume for the streams that negotiatedccm pause; see the module documentation. - struct
PerRtpSessionfromrtp_session::PerRtpSessionAn interceptor instance per RTP session; see thertp_sessionmodule's source documentation. - struct
ProbeControllerfromcc::probe::ProbeControllerDecides when a probe cluster is sent and at what rate. - struct
ProbeFillfromcc::probe::ProbeFillHow much padding a probe cluster needs, from the pacer that sends it. - struct
ProbePacketfromcc::probe::ProbePacketThe mark of an RTP packet the pacer released as part of a probe cluster, as anAttribute::Customon its way to the wire. - struct
ProbeRequestfromcc::probe::ProbeRequestA probe cluster the congestion controller asks for. - struct
ProtectionCoveragefromflexfec::coverage::ProtectionCoverageThe assignment of media packets to repair packets. - struct
QueueLimitDetectorfromgcc::queue_limit::QueueLimitDetectorThe queueing delay of the packets reported, and whether a loss among them is the queue overflowing. - struct
RateCalculatorfromgcc::rate_calc::RateCalculatorThe rate the far end is receiving, from acknowledged bytes over a sliding window. - struct
RateControllerfromgcc::rate_control::RateControllerThe AIMD controller: a usage signal and a received rate in, a target bitrate out. - struct
ReceiverReportBuilderfromreport::receiver::ReceiverReportBuilderBuilder for the ReceiverReportInterceptor. - struct
ReceiverReportInterceptorfromreport::receiver::ReceiverReportInterceptorInterceptor that generates RTCP Receiver Reports. - struct
RedAudioBuilderfromaudio_red::RedAudioBuilderBuilder forRedAudioInterceptor. - struct
RedAudioInterceptorfromaudio_red::RedAudioInterceptorRFC 2198 audio redundancy for the streams that negotiated it; see the module documentation. - struct
RedundantEncodingfromaudio_red::RedundantEncodingAnother encoding of a packet's audio, for the RED packets after it to carry instead of a copy of the packet (RFC 8854 section 4.1: when multi-packet protection is needed, "redundant encoding with reduced-bitrate Opus encodings SHOULD be used"; RFC 2198 section 3: "the redundant encoding shall use significantly less bandwidth"). The engine does not encode audio: the application's encoder makes … - struct
Registryfromregistry::RegistryCollects interceptors and assembles them into a chain. - struct
RembGeneratorBuilderfromgcc::remb::RembGeneratorBuilderBuilds aRembGeneratorInterceptor. - struct
RembGeneratorInterceptorfromgcc::remb::RembGeneratorInterceptorGenerates REMB for the remote streams that negotiatedgoog-remband no per-packet congestion feedback (see thegcc::rembmodule's source documentation). - struct
RepeatInRegularReportsfromrtcp_session::RepeatInRegularReportsAttached as anAttribute::Customto RTCP packets written into the chain: besides sending them as it sends any feedback (in an Early packet when RFC 4585 3.5.2 allows one, in the next Regular packet otherwise), the RTCP session puts a copy of them into each of the nextcountRegular compound packets after the one that carried them. - struct
Reportfromrtpfb::acknowledgement::ReportA batch of packet reports, with the round trip time they imply. - struct
ReportedRetransmissionfromtwcc::sender::ReportedRetransmissionOne retransmission the feedback reported on: the SSRC it left on, the sequence number of the packet it repairs (the original sequence number on an RTX stream, RFC 4588 section 4; the key the pacer'sRetransmissionsLeftuses), and when that retransmission was made. A 16-bit sequence number names a different packet every cycle; the instant lets the reader tell a report on a retransmission of … - struct
RetransmissionReservefromnack::responder::RetransmissionReserveThe retransmission reserve ofRetransmissionRateLimit::WithinTarget, in bits per second: the part of the congestion controller's target kept for retransmissions, which the target reported for the original media leaves out. - struct
RetransmissionsLeftfrompacing::sender::RetransmissionsLeftThe retransmissions that left the pacer, or were dropped there, since the last notice: each as (SSRC on the wire, sequence number of the packet it repairs; the original sequence number on an RTX stream). The pacer sends it application-ward on an empty RTCP carrier; the NACK responder treats a packet as on its way while its retransmission waits in the pacer and counts the resend interval from … - struct
RetransmissionsReportedfromtwcc::sender::RetransmissionsReportedWhat transport-wide feedback reported on the retransmissions this interceptor numbered, since the last notice. The TWCC sender sends it application-ward on an empty RTCP carrier when a feedback packet reports on one; the NACK responder does not repair again a packet whose repair arrived, and answers at once a request for one whose repair was lost. Probe padding (no payload) is not reported. … - struct
Rfc8888Builderfromrfc8888::sender::Rfc8888BuilderBuilder forRfc8888Interceptor. - struct
Rfc8888Interceptorfromrfc8888::sender::Rfc8888InterceptorReports when each packet of each bound remote stream arrived ([RFC 8888]). - struct
RtcpBandwidthfromrtcp_session::RtcpBandwidthThe bandwidth figures a session description gives for RTCP, all in bits per second. - struct
RTCPFeedbackfromstream_info::RTCPFeedbackRTCP feedback mechanism negotiated for the stream. - struct
RtcpReportingIntervalfromrtcp_session::RtcpReportingIntervalThe deterministic RTCP reporting interval Td (RFC 3550 section 6.3.1: the calculated interval without its random variation) as this session calculates it now, for a member that sends RTP and for one that does not. - struct
RtcpSessionBuilderfromrtcp_session::RtcpSessionBuilderBuilder forRtcpSessionInterceptor. - struct
RtcpSessionInterceptorfromrtcp_session::RtcpSessionInterceptorThe RTCP session of an endpoint (RFC 3550 section 6, RFC 4585 section 3, RFC 8108). - struct
RTPHeaderExtensionfromstream_info::RTPHeaderExtensionRTP header extension as negotiated via SDP (RFC 5285). - struct
RtpSessionfromrtp_session::RtpSessionNames the RTP session (the transport) a packet belongs to. Carried as anAttribute::Custom; read it withRtpSession::of. - struct
RtpSessionAssignmentfromrtp_session::RtpSessionAssignmentA control message: the SSRCs (local and remote, media and repair) of the m= sections that run in RTP sessionsession. Written into the chain as an empty RTCP packet (RtpSessionAssignment::into_packet); everyPerRtpSessionon the way takes note and moves a stream it holds in another session. - struct
SenderReportBuilderfromreport::sender::SenderReportBuilderBuilder for the SenderReportInterceptor. - struct
SenderReportInterceptorfromreport::sender::SenderReportInterceptorInterceptor that filters hop-by-hop RTCP reports. - struct
SendEstimatefromcc::interceptor::SendEstimateRides withAttribute::TargetBitrateChangedapplication-ward: the congestion controller's estimate of what this endpoint may send, as the estimator has it. The target beside it is lowered on its way up (the NACK responder takes its retransmission reserve off, the pacer writes zero for a pause); this is not. The congestion control feedback generators size … - struct
SlopeEstimatorfromgcc::slope::SlopeEstimatorGrouping plus filtering: acknowledgements in, a delay trend out. - struct
StreamInfofromstream_info::StreamInfoStream context passed to interceptor bind/unbind callbacks. - struct
StreamsNotSendingfrompacing::sender::StreamsNotSendingThe local streams that may not send media now: the SSRCs (media, RTX and FEC) of the senders whose negotiated direction does not send (recvonly,inactive). RFC 8866 section 6.7.4: "No media is sent over an inactive media stream", and section 6.7.1: a receive-only stream is in "receive-only mode"; RFC 3264 section 5.1. W3C webrtc-pc 4.4.1.6: an answer sets[CurrentDirection], and a … - struct
TmmbEntryfromcc::tmmbr::TmmbEntryOne FCI entry of a TMMBR or a TMMBN (RFC 5104 sections 4.2.1.1 and 4.2.2.1). - struct
TstnResponderBuilderfromtst::TstnResponderBuilderBuilder forTstnResponderInterceptor. - struct
TstnResponderInterceptorfromtst::TstnResponderInterceptorAnswers each TSTR a local media sender receives with a TSTN (RFC 5104 section 4.3.3.2). - struct
TstrCommandsfromtst::TstrCommandsCommand sequence numbers for TSTR (RFC 5104 section 4.3.2.1: "The sequence number space is unique for each pairing of the SSRC of command source and the SSRC of the command target. The sequence number SHALL be increased by 1 modulo 256 for each new command. A repetition SHALL NOT increase the sequence number"). - struct
TwccReceiverBuilderfromtwcc::receiver::TwccReceiverBuilderBuilder for the TwccReceiverInterceptor. - struct
TwccReceiverInterceptorfromtwcc::receiver::TwccReceiverInterceptorInterceptor that tracks incoming RTP packets and generates TWCC feedback. - struct
TwccSenderBuilderfromtwcc::sender::TwccSenderBuilderBuilder for theTwccSenderInterceptor. - struct
TwccSenderInterceptorfromtwcc::sender::TwccSenderInterceptorNumbers every departing RTP packet so the remote can report on it (draft-holmer-rmcat-transport-wide-cc-extensions-01). - struct
VbcmCommandsfromtst::VbcmCommandsCommand sequence numbers for VBCM (RFC 5104 section 4.3.4.1: "The sequence number SHALL be increased by 1 modulo 256 for each new command. A repetition SHALL NOT increase the sequence number"). - struct
WireImagesfromwire_image::WireImagesThe reading end of aWireImageTap. - struct
WireImageTapfromwire_image::WireImageTapCopies departing RTP packets of the watched streams, as they leave. Changes nothing: every packet passes through as it came. - struct
XrReportBuilderfromxr::XrReportBuilderBuilder forXrReportInterceptor. - struct
XrReportHandlefromxr::XrReportHandleThe application's way to give the XR generator what only it knows, while the connection runs: the call quality figures of each received stream's VoIP Metrics block (RFC 3611 section 4.7.5). Built withXrReportBuilder::build_with_handle; clones share the state. - struct
XrReportInterceptorfromxr::XrReportInterceptorWrites RFC 3611 report blocks about the remote streams that asked for them. - enum
AfterDropProbefromcc::probe::AfterDropProbeWhat is probed for after a large drop of the target (ProbeController::with_after_drop_probe). - enum
Attributefrompacket::AttributeA fact about a packet, attached by one interceptor and readable by the rest. - enum
AudioRedundancyfromaudio_red::AudioRedundancyWhen a local audio stream whose section negotiated RED (RFC 2198) is sent in RED. Received RED is taken apart in every case. - enum
CircuitBreakerReasonfromcircuit_breaker::CircuitBreakerReasonWhich breaker stopped a flow. - enum
CircuitBreakerStatefromcircuit_breaker::CircuitBreakerStateWhat the circuit breaker is doing with one flow. - enum
CongestionFeedbackCadencefromcc::feedback_cadence::CongestionFeedbackCadenceWhen a congestion control feedback generator (transport-wide feedback, RFC 8888) builds its next report, while its interval is not fixed. - enum
CongestionFeedbackFormatfromcc::feedback::CongestionFeedbackFormatThe per-packet feedback format a stream's arrivals are reported in. - enum
EcnFailurefromrfc8888::ecn::EcnFailureAn ECN failure a stream's validation detected (RFC 6679 sections 7.2.1 and 7.4.2: detected failures and erroneous behaviour "should" be logged "to enable follow up"). Each is logged and kept for the application (EcnValidation::take_failures). - enum
EcnInitiationfromrfc8888::ecn::EcnInitiationHow a stream starts using ECN. - enum
EcnMarkingfromrfc8888::ecn::EcnMarkingWhich ECT codepoint a stream that marks sends. - enum
EcnStatefromrfc8888::ecn::EcnStateWhere a stream is in RFC 6679's procedure. - enum
EctPreferencefromrfc8888::ecn::EctPreferenceWhich ECT codepoint a receiver asks the sender to use: theect=parameter of itsa=ecn-capable-rtp(RFC 6679 section 6.1). Left out, the sender uses ECT(0). - enum
FlexFecEncodeErrorfromflexfec::rfc8627::encoder::FlexFecEncodeErrorWhy a repair packet could not be built. - enum
FlexFecHeaderfromflexfec::rfc8627::header::FlexFecHeaderA parsed FEC header (section 4.2.2). - enum
FlexFecHeaderErrorfromflexfec::rfc8627::header::FlexFecHeaderErrorWhy a repair packet's FEC header cannot be used. - enum
FlexFecLayoutfromflexfec::rfc8627::encoder::FlexFecLayoutHow a repair packet names the source packets it protects. - enum
FlexFecProtectedfromflexfec::rfc8627::header::FlexFecProtectedHow one block of a repair packet names the source packets it protects. - enum
FlexFecProtectionfromflexfec::rfc8627::encoder::FlexFecProtectionThe shape of the FEC a sender applies to each block of consecutive source packets (RFC 8627 section 1.1). - enum
LocalKeyFrameRequestfromkeyframe::LocalKeyFrameRequestWhy an interceptor of this crate asked the application for a key frame itself: the Picture Loss Indication it puts on the read leg (sender SSRC 0, markedAttribute::DeliverToApplication) carries this asAttribute::Custom, so whoever reads it can tell it from a request the remote peer sent. Read it withAttributedPacket::custom; a PLI or FIR without it came from the network. - enum
NackControlfromnack::NackControlWhat a session description negotiated for retransmission (RFC 4588), told to the NACK interceptors while they run. - enum
Packetfrompacket::PacketRTP/RTCP Packet - enum
PauseResumeControlfrompause_resume::PauseResumeControlWhat the peer connection tells thePauseResumeInterceptorwhile it runs: a local stream it sends made inactive or active again (W3C webrtc-pcRTCRtpEncodingParametersactive), which RFC 8853 section 5.2 has treated as an RFC 7728 local pause (section 6.4, announced with PAUSED) and resume. A stream that did not negotiate pause and resume is not affected. - enum
PauseStatefrompause_resume::PauseStateWhere a local RTP stream is in the state machine of RFC 7728 section 6 (Figure 4). - enum
RateControlStatefromgcc::state::RateControlStateWhat the rate controller should be doing. - enum
ReceivedRateBoundfromgcc::rate_control::ReceivedRateBoundWhat the bound of the estimate by the received rate (A_hat(i) < 1.5 * R_hat(i), draft-ietf-rmcat-gcc-02 section 5.5) does to an estimate that is above it. - enum
Rejectedfromjitterbuffer::buffer::RejectedWhy a packet was not stored. - enum
RemotePauseStatefrompause_resume::RemotePauseStateWhat a receiver knows of a remote RTP stream it can pause. - enum
RetransmissionRateLimitfromnack::responder::RetransmissionRateLimitHow the NACK responder holds its retransmissions to the congestion controller's target (RFC 4588 section 7), read fromAttribute::TargetBitrateChangedas it passes on the read leg. Until a target has passed, and in a chain without a congestion controller, nothing is held back. - enum
RtcpProfilefromrtcp_session::RtcpProfileThe RTP profile whose RTCP timing rules apply. - enum
RtcpSessionControlfromrtcp_session::RtcpSessionControlWhat an application (or the peer connection) tells the session while it runs. - enum
RtcpSessionEventfromrtcp_session::RtcpSessionEventWhat the session tells the rest of the chain and the peer connection. - enum
Slotfromregistry::SlotWhere an interceptor belongs in the chain, measured by distance from the wire. - enum
ThresholdTimeBasefromgcc::threshold::ThresholdTimeBaseWhich time step the threshold adaptation of draft-ietf-rmcat-gcc-02 section 5.4 takes,del_var_th(i) = del_var_th(i-1) + (t(i)-t(i-1)) * K(i) * (|m(i)| - del_var_th(i-1)). - enum
TmmbrControlfromcc::tmmbr_request::TmmbrControlWhat an application tells the TMMBR requester (the congestion control interceptor), written into the chain withinto_packet. - enum
UlpfecErrorfromulpfec::UlpfecErrorWhy ULPFEC data was refused. - enum
Usagefromgcc::overuse::UsageWhat the delay signal currently says about the path. - trait
BandwidthEstimatorfromcc::estimator::BandwidthEstimatorA congestion control algorithm: acknowledged packets in, a target bitrate out. - trait
InterceptorOne interceptor of packet processing. - trait
RtcpRandomfromrtcp_session::identity::RtcpRandomThe source of the random numbers the RTCP session uses: the variation of the report interval (RFC 3550 6.3.1), the dither of early feedback (RFC 4585 3.5.2), a reporting SSRC (RFC 3550 8.1) and the CNAME (RFC 7022 section 5). - fn
burst_estimatefromcc::probe::burst_estimateThe bit rate a path showed it carries, from the reports on a cluster that left as one burst (a chain without a pacer: the NACK responder's padding, written in the same instant). - fn
convert_ccfbfromrtpfb::convert::convert_ccfbConvert an RFC 8888 report into acknowledgements per media stream, with the delay the receiver added before sending it. - fn
convert_twccfromrtpfb::convert::convert_twccConvert a TWCC feedback packet into one acknowledgement per reported packet. - fn
generate_rtcp_cnamefromrtcp_session::identity::generate_rtcp_cnameA new RTCP CNAME for an endpoint, as RFC 7022 section 4.2 defines a short-term persistent one: 96 bits from the operating system's CSPRNG, Base64 encoded (16 characters). RFC 8834 4.9 asks for one perRTCPeerConnection, used by every SSRC it sends from. - fn
negotiated_congestion_feedbackfromcc::feedback::negotiated_congestion_feedbackThe one feedback format a stream uses, from what was negotiated for it. - fn
pause_config_answerfrompause_resume::pause_config_answerTheconfigan answerer that implements everything answers to an offered one (RFC 7728 section 9.1, Figure 9): the complementary subset, so that what one side sends the other receives.Nonefor a value the section does not define: "MUST remove the "pause" CCM line in the answer when receiving an offer with a "config" value it does not understand". The mapping is its own inverse, so it also … - fn
probe_estimatefromcc::probe::probe_estimateThe bit rate a path showed it carries, from the reports on the packets of one cluster. - fn
wire_image_tapfromwire_image::wire_image_tapA tap and the handle that reads it. - type
BoxedInterceptorAn interceptor whose concrete type has been erased. - type
TaggedPacketfrompacket::TaggedPacketTagged packet with transport metadata. - const
ABS_SEND_TIME_SLOTfromgcc::remb::ABS_SEND_TIME_SLOTWhere the default interceptor set puts theAbsSendTimeInterceptor(Slot::Custom(ABS_SEND_TIME_SLOT)): wire-ward of the pacer (3_000), so the stamp is the instant a packet leaves it, and of the TWCC sender (2_000); application-ward of the FEC wire-image tap (1_500), so FEC protects the stamped packet. - const
ABS_SEND_TIME_URIfromgcc::remb::ABS_SEND_TIME_URIThe abs-send-time header extension's URI. - const
DEFAULT_NUM_FEC_PACKETSfromflexfec::draft03::sender::DEFAULT_NUM_FEC_PACKETSRepair packets produced per block. - const
DEFAULT_NUM_MEDIA_PACKETSfromflexfec::draft03::sender::DEFAULT_NUM_MEDIA_PACKETSMedia packets gathered before a repair block is produced. - const
FEC_DEFAULT_LATENCY_BUDGETfromcc::fec_rate::FEC_DEFAULT_LATENCY_BUDGETThe latency budget a FEC sender assumes when its builder names none: the round trip within which a retransmission is preferred to FEC (RFC 8854 section 8). ITU-T G.114 (05/2003) takes a one-way delay of up to 150 ms as acceptable to most interactive applications; a retransmission delays the packet it repairs by about one round trip. - const
FLEXFEC_DEFAULT_PROTECTIONfromflexfec::rfc8627::sender::FLEXFEC_DEFAULT_PROTECTIONThe protection applied when the builder names none: flexible masks, two interleaved repair packets per five source packets (the draft-03 interceptor's default shape). - const
FLEXFEC_DEFAULT_REPAIR_WINDOWfromflexfec::rfc8627::decoder::FLEXFEC_DEFAULT_REPAIR_WINDOWThe repair window a decoder assumes when none is signalled: 10 s, the value libwebrtc writes for FlexFEC. - const
FLEXFEC_MAX_MASK_BITSfromflexfec::rfc8627::header::FLEXFEC_MAX_MASK_BITSThe most source packets a flexible mask can name: 15 + 31 + 64 bits (section 4.2.2.1). - const
FLEXFEC_MAX_PROTECTED_SSRCSfromflexfec::rfc8627::header::FLEXFEC_MAX_PROTECTED_SSRCSThe most source streams one repair packet can protect: the CSRC count is four bits. - const
FLEXFEC_MAX_REPAIR_WINDOWfromflexfec::rfc8627::receiver::FLEXFEC_MAX_REPAIR_WINDOWThe longest repair window a receiver built withoutwith_max_repair_windowsupports: 10 s. - const
FLEXFEC_RECOVERY_SIZEfromflexfec::rfc8627::header::FLEXFEC_RECOVERY_SIZEThe recovery fields every R=0 header starts with: P, X, CC, M, PT recovery, length recovery and TS recovery (Figures 12 and 13). - const
GOOG_REMBfromgcc::remb::GOOG_REMBThe RTCP feedback type that negotiates REMB (a=rtcp-fb:<pt> goog-remb). - const
MAX_FEC_PACKETSfromflexfec::coverage::MAX_FEC_PACKETSThe most repair packets one block can produce. - const
MAX_HELD_WIRE_IMAGESfromwire_image::MAX_HELD_WIRE_IMAGESThe most wire images held for an encoder that is not taking them. - const
MAX_MEDIA_PACKETSfromflexfec::coverage::MAX_MEDIA_PACKETSThe most media packets one FEC block can protect. - const
MAX_RETRANSMISSION_RESERVEfromnack::responder::MAX_RETRANSMISSION_RESERVEThe most of the congestion controller's target the retransmission reserve ofRetransmissionRateLimit::WithinTargettakes, by default: half. - const
NTP_TIMESTAMP_INITIAL_WINDOWfromntp_timestamp::NTP_TIMESTAMP_INITIAL_WINDOWHow long from a stream's first packet every packet carries the timestamp, by default. - const
NTP_TIMESTAMP_INTERVALfromntp_timestamp::NTP_TIMESTAMP_INTERVALHow often a frame carries the timestamp after the initial window, by default. - const
NTP_TIMESTAMP_SLOTfromntp_timestamp::NTP_TIMESTAMP_SLOTWhereNtpTimestampInterceptorsits in the default set:Slot::Custom(1_850). - const
PAUSE_DEFAULT_REPORT_INTERVALfrompause_resume::PAUSE_DEFAULT_REPORT_INTERVALThe interval at which PAUSED is repeated and after which a participant that sent nothing for five of them has timed out (RFC 3550 section 6.3.5), unless the builder says otherwise: the RTCP report interval of a session at the minimum RTCP rate (RFC 3550 section 6.2). - const
PAUSE_DEFAULT_ROUND_TRIP_TIMEfrompause_resume::PAUSE_DEFAULT_ROUND_TRIP_TIMEThe round trip a sender or receiver assumes while it knows none (RFC 7728 section 8.1: "RTP stream receivers that lack an RTT estimate to the sender SHOULD use 500 ms as the default value"). - const
PAUSE_MEDIA_BOUNDARY_MAX_WAITfrompause_resume::PAUSE_MEDIA_BOUNDARY_MAX_WAITThe longest a stream whose hold-off period ended in the middle of a video frame waits for the frame to end before it pauses anyway (RFC 7728 section 6.3: pausing "SHOULD only be done when reaching an appropriate place to pause in the stream, like a media boundary"). The wait ends earlier with the packet that has the marker bit, or before a packet of the next frame; this bound only matters when … - const
PAUSED_REPETITIONSfrompause_resume::PAUSED_REPETITIONSHow often PAUSED is repeated after the first one: "PAUSED MUST also be included in (at least) the next two regular RTCP reports" (section 8.2). - const
PENDING_REQUEST_LIFETIMEfromnack::responder::PENDING_REQUEST_LIFETIMEA request that waits for room is dropped when the receiver has not asked for the packet again within this long, or within two round trips when that is longer: a receiver asks again every round trip while the packet is missing, so one that stopped asking has the packet or no longer wants it. - const
PER_FRAME_INTERVALfromcc::feedback_cadence::PER_FRAME_INTERVALdraft-ietf-rmcat-gcc-02 section 3: "at least once every 30 ms if audio-only or multi-stream". - const
PER_FRAME_MAX_INTERVALfromcc::feedback_cadence::PER_FRAME_MAX_INTERVALdraft-ietf-rmcat-gcc-02 section 3: "If the feedback overhead needs to be limited this interval can be increased to 100 ms". - const
PROBE_AFTER_DROP_TIMEOUTfromcc::probe::PROBE_AFTER_DROP_TIMEOUTHow long after a large drop the old rate is probed for. - const
PROBE_APPLICATION_LIMITED_INTERVALfromcc::probe::PROBE_APPLICATION_LIMITED_INTERVALHow often a cluster is sent while the application sends less than the target. - const
PROBE_DROP_MEMORYfromcc::probe::PROBE_DROP_MEMORYHow long the rate before a large drop is remembered as the rate the path had, for recovery probing (ProbeController::with_recovery_probing): the highest such rate of this long. - const
PROBE_MAX_OCTETSfromcc::probe::PROBE_MAX_OCTETSThe most a cluster asks for, whatever its rate. - const
PROBE_MIN_DURATIONfromcc::probe::PROBE_MIN_DURATIONHow long a cluster lasts at its rate, at least. - const
PROBE_MIN_PACKETSfromcc::probe::PROBE_MIN_PACKETSHow many packets a cluster has, at least. - const
PROBE_PADDING_OCTETSfromnack::responder::PROBE_PADDING_OCTETSThe padding octets of one probe packet: the most RFC 3550 section 5.1 padding holds (its count is one octet). - const
PROBE_RECOVERY_INTERVALfromcc::probe::PROBE_RECOVERY_INTERVALHow often a recovery cluster is sent while the target is below the remembered rate (ProbeController::with_recovery_probing). - const
PROBE_RESULT_TIMEOUTfromcc::probe::PROBE_RESULT_TIMEOUTHow long a cluster's reports are waited for before it is given up. - const
QUEUE_AT_LIMIT_MIN_DELAYfromgcc::queue_limit::QUEUE_AT_LIMIT_MIN_DELAYAnd at least this much queueing delay: below it there is no queue to speak of, and loss is loss on the way (a radio link, a policer), which the loss-based controller is for. - const
QUEUE_AT_LIMIT_SHAREfromgcc::queue_limit::QUEUE_AT_LIMIT_SHAREA batch whose packets all met at least this share of the recent highest queueing delay arrived out of a queue at its limit. - const
QUEUE_BASE_WINDOWfromgcc::queue_limit::QUEUE_BASE_WINDOWHow far back the lowest one-way delay is looked for: the path's delay with an empty queue. - const
QUEUE_HIGH_WINDOWfromgcc::queue_limit::QUEUE_HIGH_WINDOWHow far back the highest queueing delay is looked for: where the queue overflows. - const
RED_AUDIO_DEFAULT_MAX_PAYLOAD_SIZEfromaudio_red::RED_AUDIO_DEFAULT_MAX_PAYLOAD_SIZEThe largest RED payload the sender builds by default: redundant blocks that would make the payload larger are left out (an Opus packet is far smaller), so that a RED packet stays within the path MTU the application sized the primary for, with the header, its extensions and the SRTP tag. - const
RED_AUDIO_DEFAULT_REDUNDANCYfromaudio_red::RED_AUDIO_DEFAULT_REDUNDANCYHow many earlier primaries a RED packet carries by default: one, as Chromium sends Opus RED. - const
RED_AUDIO_LOSS_ONfromaudio_red::RED_AUDIO_LOSS_ONThe smoothed loss at which a stream sent in RED on loss (RedAudioBuilder::with_redundancy_on_loss) goes in RED: the loss under which the FEC senders send no repair (FEC_MIN_LOSS). It goes back to the primary under half of it. - const
REMB_DECREASE_TRIGGERfromgcc::remb::REMB_DECREASE_TRIGGERAn estimate below this share of the last one sent is news (congestion) and goes out at once, as libwebrtc'skSendThresholdPercenthas it. - const
REMB_GENERATOR_SLOTfromgcc::remb::REMB_GENERATOR_SLOTWhere the default interceptor set puts theRembGeneratorInterceptor(Slot::Custom(REMB_GENERATOR_SLOT)): with the other arrival recorders, after the RFC 8888 one (9_000) and before the receiver report (10_000). - const
REMB_INITIALIZATION_TIMEfromgcc::remb::REMB_INITIALIZATION_TIMEHow long arrivals are watched before the first estimate is made from what they carry. - const
REMB_MAX_INTERVALfromgcc::remb::REMB_MAX_INTERVALThe longest a REMB waits when nothing has changed (section 3: "at least once per second"). - const
REMB_TIMEOUTfromcc::interceptor::REMB_TIMEOUTHow long a REMB keeps bounding the target after it was received. - const
REMB_UPDATE_INTERVALfromgcc::remb::REMB_UPDATE_INTERVALHow often the arrivals are given to the estimator. - const
RETRANSMISSION_RATE_WINDOWfromnack::responder::RETRANSMISSION_RATE_WINDOWThe windowRetransmissionRateLimitmeasures the rates over (libwebrtc'skRetransmitWindowSizeMs). - const
RETRANSMISSION_REPORT_HORIZONfromtwcc::sender::RETRANSMISSION_REPORT_HORIZONHow long after a retransmission was made the feedback on it still counts: longer than the pacer's queue time bound (2 s by default) and a round trip of a path in real-time use together. The clock is the engine's (the instant on every packet and timeout that passes), not the arrival of a later report: a number whose feedback was lost is forgotten all the same. - const
RTCP_FB_CCM_PAUSEfrompause_resume::RTCP_FB_CCM_PAUSETheccmparameter ofa=rtcp-fbthat negotiates the messages (RFC 7728 section 9). - const
RTCP_FB_NACK_ECNfromxr::RTCP_FB_NACK_ECNThenackparameter of the RFC 6679 RTCP ECN Feedback packet (a=rtcp-fb:<pt> nack ecn, section 6.2). The RTCP session writes the packet. - const
RTCP_FB_RRTRfromreport::receiver::RTCP_FB_RRTRThe RTCP feedback type (a=rtcp-fb:<pt> rrtr) that asks the receiver of a stream to send RTCP XR receiver reference time blocks (RFC 3611 section 4.4), libwebrtc's name for it. - const
RTCP_FB_XRfromxr::RTCP_FB_XRThe RTCP feedback type a stream's negotiateda=rtcp-xrunilateral formats arrive under (one entry per format, the format as its parameter). - const
RTCP_SESSION_DEFAULT_MTUfromrtcp_session::RTCP_SESSION_DEFAULT_MTUThe default ofRtcpSessionBuilder::with_mtu: the size a compound RTCP packet is kept under, SRTCP and lower layers not counted. - const
RTCP_SESSION_DEFAULT_T_RR_INTERVALfromrtcp_session::RTCP_SESSION_DEFAULT_T_RR_INTERVALThe default ofRtcpSessionBuilder::with_t_rr_interval. - const
RTCP_SESSION_MIN_BANDWIDTHfromrtcp_session::RTCP_SESSION_MIN_BANDWIDTHThe session bandwidth assumed while none is configured and no media has been measured: one audio stream. - const
RTCP_SESSION_NOMINAL_AUDIO_BANDWIDTHfromrtcp_session::RTCP_SESSION_NOMINAL_AUDIO_BANDWIDTHThe session bandwidth assumed for audio while none was signalled: 64 kbit/s, an Opus stream at its high end for speech and the floor the session has always had. - const
RTCP_SESSION_NOMINAL_VIDEO_BANDWIDTHfromrtcp_session::RTCP_SESSION_NOMINAL_VIDEO_BANDWIDTHThe session bandwidth assumed for video at the start, while nob=line gave one and the media has not yet had its two seconds to be measured: 1 Mbit/s, a camera stream at standard definition. - const
RTCP_XR_ECN_SUMMARYfromxr::RTCP_XR_ECN_SUMMARYThexr-formatof the RFC 6679 ECN Summary Report block (a=rtcp-xr:ecn-sum, section 6.3). The RTCP session writes the block (RtcpSessionInterceptor). - const
TMMBR_OWNER_TIMEOUTfromcc::tmmbr::TMMBR_OWNER_TIMEOUTHow long the owner of a tuple may stay silent before it has left: five reporting intervals of five seconds, the RTP participant timeout (RFC 3550 section 6.3.5). - const
TMMBR_REPEAT_INTERVALfromcc::tmmbr_request::TMMBR_REPEAT_INTERVALHow long an unacknowledged TMMBR waits before it is sent again (RFC 5104 section 4.2.1.2): about a regular RTCP reporting interval of a WebRTC session. - const
ULPFEC_DEFAULT_NUM_FEC_PACKETSfromulpfec::sender::ULPFEC_DEFAULT_NUM_FEC_PACKETSFEC packets produced per block of media. - const
ULPFEC_DEFAULT_NUM_MEDIA_PACKETSfromulpfec::sender::ULPFEC_DEFAULT_NUM_MEDIA_PACKETSMedia packets gathered before FEC is produced for them. - const
ULPFEC_MAX_HELD_FECfromulpfec::decoder::ULPFEC_MAX_HELD_FECThe most FEC packets held while they still have something to recover. - const
ULPFEC_MAX_HELD_FEC_PACKETSfromulpfec::sender::ULPFEC_MAX_HELD_FEC_PACKETSThe most FEC packets held back for the end of a frame (UlpfecSendBuilder::with_fec_after_frame). A stream that never sets the marker bit, or a frame of more packets than this many FEC packets protect, gets them where the count is reached. - const
ULPFEC_MEDIA_WINDOWfromulpfec::decoder::ULPFEC_MEDIA_WINDOWHow far behind (and ahead of) the newest media sequence number packets are kept. - use
AdaptiveJitterBufferBuilderfromadaptive_jitter_buffer::JitterBufferBuilderBuilder forJitterBufferInterceptor(exported asAdaptiveJitterBufferBuilderandAdaptiveJitterBufferInterceptor). - use
AdaptiveJitterBufferInterceptorfromadaptive_jitter_buffer::JitterBufferInterceptorReceiver-side jitter buffer interceptor. - use
CIRCUIT_BREAKER_NON_REPORTING_THRESHOLDfromcircuit_breaker::DEFAULT_NON_REPORTING_THRESHOLDThe non-reporting threshold k: the RECOMMENDED value (RFC 8083 section 4.2). - use
CIRCUIT_BREAKER_RTCP_INTERVALfromcircuit_breaker::DEFAULT_RTCP_INTERVALThe fixed minimum RTCP interval the RTCP timeout is computed with (Tmin, RFC 8083 section 4.1). - use
CircuitBreakerPacketSizefromcircuit_breaker::PacketSizeHow the congestion breaker takes s, the packet size of the TCP throughput equation (RFC 8083 section 4.3). - use
CONGESTION_CONTROL_DEFAULT_PRUNE_HORIZONfromcc::interceptor::DEFAULT_PRUNE_HORIZONHow long an unacknowledged packet is kept before it is written off. - use
depacketize_red_for_ulpfecfromulpfec::depacketize_redTake a RED payload (RFC 2198) apart for ULPFEC (RFC 5109 14.2): the blocks offec_payload_typeare FEC payloads, the primary block is the media. - use
ECN_CONFIRMATIONSfromrfc8888::ecn::CONFIRMATIONSProbes reported received with an ECN-capable marking that make the initiation succeed. - use
ECN_DEFAULT_RETRY_AFTERfromrfc8888::ecn::DEFAULT_RETRY_AFTERHow long after a failed initiation the next one starts (RFC 6679 section 7.4.1 option 1). - use
ECN_PROBE_INTERVALfromrfc8888::ecn::PROBE_INTERVALDuring initiation a probe is sent at least this often (given an unmarked packet since the last one): two per RTCP reporting interval at the shortest regular interval RFC 3550 section 6.2 allows a reduced-minimum sender (360 / session kbit/s seconds) is met for any session above 720 kbit/s by the spacing, and below by this. - use
ECN_PROBE_SPACINGfromrfc8888::ecn::PROBE_SPACINGDuring initiation one packet in this many is a probe sent ECT. - use
FEC_MIN_LOSSfromcc::fec_rate::MIN_LOSSSmoothed loss under which no repair packet is sent: it would not help recover anything. - use
FecLossPatternfromcc::fec_rate::LossPatternWhat the recent losses of the path looked like (RFC 8627 sections 1.1.3, 1.1.4 and 8). - use
FecSessionPacketfromulpfec::FecSessionPacketMarks 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 asAttribute::Custom. - use
FLEXFEC03_MAX_MEDIA_PACKETSfromflexfec::draft03::encoder::DRAFT03_MAX_MEDIA_PACKETSThe most media packets one draft-03 repair packet can describe: 15 + 31 + 63 mask bits (draft-ietf-payload-flexible-fec-scheme-03, section 4.2). - use
FLEXFEC03_MAX_REPAIR_PACKET_SIZEfromflexfec::draft03::encoder::DRAFT03_MAX_REPAIR_PACKET_SIZEThe largest repair packet (RTP header, FlexFEC header and repair payload) a draft-03 encoder builds by default: what an Ethernet path MTU of 1500 octets leaves for an RTP packet under IPv6 (40), UDP (8) and the longest SRTP authentication tag of the DTLS-SRTP profiles (16). - use
FlexFecParseErrorfromflexfec::draft03::decoder::ParseErrorWhy a repair packet could not be used. - use
GCC_DECREASE_FACTORfromgcc::rate_control::DEFAULT_DECREASE_FACTORMultiplier applied to the received rate when backing off (beta, section 5.5). - use
GCC_DEFAULT_BURST_INTERVALfromgcc::arrival_group::DEFAULT_BURST_INTERVALPackets sent within this of each other are one burst. - use
GCC_DEFAULT_OVERUSE_TIMEfromgcc::overuse::DEFAULT_OVERUSE_TIMEHow long the trend must stay outside the threshold before overuse is declared. - use
GCC_HIGH_LOSSfromgcc::loss::DEFAULT_HIGH_LOSSAbove this the path is considered congested and the rate must fall. - use
GCC_INCREASE_FACTORfromgcc::rate_control::DEFAULT_INCREASE_FACTORMultiplicative growth per second while far from convergence (the 1.08 of eta, section 5.5). - use
GCC_INITIAL_BITRATEfromgcc::estimator::DEFAULT_INITIAL_BITRATERate to start from when nothing is known yet. - use
GCC_LOSS_INTERVALfromgcc::loss::DEFAULT_LOSS_INTERVALHow long between changes, so each is observed before the next. - use
GCC_LOW_LOSSfromgcc::loss::DEFAULT_LOW_LOSSBelow this loss fraction the path is considered healthy and the rate may climb. - use
GCC_MAX_BITRATEfromgcc::estimator::DEFAULT_MAX_BITRATECeiling. - use
GCC_MIN_BITRATEfromgcc::estimator::DEFAULT_MIN_BITRATEFloor. Below this a video call is not worth having. - use
GCC_RATE_CONTROL_INTERVALfromgcc::rate_control::DEFAULT_RATE_CONTROL_INTERVALThe step the first update of a controller is taken to cover, before there is a previous update to measure from. - use
GCC_RATE_WINDOWfromgcc::rate_calc::DEFAULT_WINDOWHow far back the received rate is measured over. - use
GCC_THRESHOLD_INITIAL_MSfromgcc::threshold::DEFAULT_INITIAL_MSStarting threshold, in milliseconds — draft-ietf-rmcat-gcc-02 §5.4. - use
interceptorfrominterceptor_derive::interceptor - use
Interceptorfrominterceptor_derive::Interceptor - use
INTERVAL_PLI_DEFAULT_INTERVALfromintervalpli::generator::DEFAULT_INTERVALHow often a keyframe is requested when no interval is configured. - use
JITTER_BUFFER_DEFAULT_CAPACITYfromjitterbuffer::receiver::DEFAULT_CAPACITYDefault cap on packets held per stream, so a stalled or hostile stream cannot grow without bound while its deadline is still in the future. - use
JITTER_BUFFER_DEFAULT_DEPTHfromjitterbuffer::receiver::DEFAULT_DEPTHDefault playout depth: enough to absorb ordinary network jitter without adding audible delay. - use
JitterBufferStatefromjitterbuffer::buffer::StateWhether the buffer is still filling or is handing packets out. - use
NACK_MAX_REPAIR_AGEfromnack::responder::MAX_REPAIR_AGEHow old a packet may be and still be repaired, by default (NackResponderBuilder::with_max_repair_age): two seconds, the pacer's queue time bound, past which the pacer itself drops what waits as stale. One second (libwebrtc's shortest packet history) was measured and is too short: behind a path queue of a second a NACK for a packet still wanted arrives later than that. - use
NACK_REPAIR_BACKLOG_BOUNDfromnack::responder::REPAIR_BACKLOG_BOUNDThe backlog of repairs given up after the target halved, by default (NackResponderBuilder::with_repair_backlog_bound): what would take two seconds or more to leave at the target. One second was measured and gives up too early: the key frame asked for goes into a path queue that is still full (200 calls per cell: 8 and 24 with no frame for over 2 s behind queues of 100 ms and 1 s, against … - use
NACK_SUGGESTED_MAX_NACKS_PER_PACKETfromnack::generator::SUGGESTED_MAX_NACKS_PER_PACKETA limit forNackGeneratorBuilder::with_max_nacks_per_packet: ten requests, the generator's default from v0.22.0+brainwires.6 until requests became unlimited. Not libwebrtc's: itskMaxNackRetriesis 100 (modules/video_coding/nack_requester.ccat a222406d, line 39), the limit of theChromebehaviour profile. Not the default (see the method). - use
NACK_SUGGESTED_MAX_PACKET_AGEfromnack::generator::SUGGESTED_MAX_PACKET_AGEA limit forNackGeneratorBuilder::with_max_packet_age, for a receiver that plays a packet out within two seconds of its loss. Not the default (see the method). - use
PACER_BURST_TIMEfrompacing::pacer::BURST_TIMEThe pacing interval: a group of packets leaves every 5 ms (draft-ietf-rmcat-gcc-02 section 4). - use
PACER_DEFAULT_BITRATEfrompacing::sender::DEFAULT_BITRATERate used when none is configured: 1 Mb/s. - use
PACER_DEFAULT_QUEUE_LIMITfrompacing::sender::DEFAULT_QUEUE_LIMITPackets held before the queue overflows (seeQueueOverflow). - use
PACER_DEFAULT_QUEUE_TIME_LIMITfrompacing::sender::DEFAULT_QUEUE_TIME_LIMITHow long a packet may wait in the queue by default (libwebrtc'skMaxExpectedQueueLength, 2 s); what happens to one that would wait longer isQueueOverflow's. - use
PACER_MIN_BURST_BITSfrompacing::pacer::MIN_BURST_BITSSmallest burst any pacer allows, in bits. - use
PacerBacklogfrompacing::sender::BacklogWhat 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" onPacerInterceptor). It applies withQueueOverflow::Drop;QueueOverflow::Drainnever discards. - use
PacerQueueOverflowfrompacing::sender::QueueOverflowWhat the pacer does with media the target has no room for: a packet that has waited the queue time limit, or the oldest one when a packet arrives at a full queue. It happens only when the application writes faster than the congestion controller's target for longer than the limit. - use
RedFecPayloadfromulpfec::RedFecPayloadWhat a RED payload of a ULPFEC-protected stream holds. - use
RedPlacementfromulpfec::RedPlacementWhere FEC data goes in a RED stream. - use
RFC8888_DEFAULT_INTERVALfromrfc8888::sender::DEFAULT_INTERVALHow often feedback is sent when no interval is configured. - use
RFC8888_DEFAULT_MAX_REPORT_SIZEfromrfc8888::sender::DEFAULT_MAX_REPORT_SIZEByte budget for one report, chosen to sit inside a conservative path MTU. - use
STABLE_FEEDBACK_JITTERfromcc::feedback_cadence::STABLE_JITTERThe interarrival jitter (RFC 3550 section 6.4.1, of frame starts) under which the path counts as stable, with no packet missing. - use
STABLE_FEEDBACK_MAX_INTERVALfromcc::feedback_cadence::STABLE_MAX_INTERVALThe longest a stretched interval goes to. - use
STABLE_FEEDBACK_QUEUEfromcc::feedback_cadence::STABLE_QUEUEThe queueing delay (the frame starts' transit time above the lowest seen) under which the path counts as stable: a queue that builds slowly and evenly has little jitter, and is not an equilibrium. - use
STABLE_FEEDBACK_REPORTSfromcc::feedback_cadence::STABLE_REPORTSRFC 8836 section 2, requirement 8c, withTwccReceiverBuilder::with_stability_stretch: how many reports in a row must see a stable path before the interval stretches. - use
STABLE_FEEDBACK_STRETCHfromcc::feedback_cadence::STABLE_STRETCHHow much longer the interval is while the path is stable. - use
ULPFEC_HEADER_LENGTHfromulpfec::FEC_HEADER_LENGTHOctets of the FEC header (RFC 5109 7.3). - use
ULPFEC_LONG_MASK_BITSfromulpfec::LONG_MASK_BITSPackets a long mask describes (L = 1). - use
ULPFEC_MAX_LEVELSfromulpfec::MAX_LEVELSThe most protection levels read from one FEC packet. - use
ulpfec_one_level_only_from_fmtpfromulpfec::one_level_only_from_fmtpThe value of theonelevelonlymedia type parameter in ana=fmtpparameter string (RFC 5109 13):trueforonelevelonly=1,falsefor0, for an absent parameter (its default) and for any other value. - use
ULPFEC_SHORT_MASK_BITSfromulpfec::SHORT_MASK_BITSPackets a short mask describes (L = 0). - use
UlpfecDecoderfromulpfec::UlpfecDecoderRecovers lost media packets of one stream from ULPFEC packets. - use
UlpfecDecoderStatsfromulpfec::UlpfecDecoderStatsWhat a decoder has done so far. - use
UlpfecEncoderfromulpfec::UlpfecEncoderGenerates ULPFEC payloads. - use
UlpfecLevelfromulpfec::UlpfecLevelOne protection level of a FEC packet: its mask and its payload (RFC 5109 7.4). - use
UlpfecPacketfromulpfec::UlpfecPacketA parsed ULPFEC payload: what follows the RTP header of a FEC packet, or what a RED block of the FEC payload type holds. - use
UlpfecProtectionLevelfromulpfec::ProtectionLevelOne protection level to generate: how many octets it covers and which packets it protects. - use
UlpfecReceiveBuilderfromulpfec::UlpfecReceiveBuilderBuilder forUlpfecReceiveInterceptor. - use
UlpfecReceiveInterceptorfromulpfec::UlpfecReceiveInterceptorRecovers media lost from streams protected by ULPFEC (RFC 5109). - use
UlpfecReceiveStatsfromulpfec::UlpfecReceiveStatsWhat the ULPFEC decoder of one protected stream has received and done so far. - use
UlpfecRepairfromulpfec::UlpfecRepairMarks an RTP packet that carried only FEC in a RED stream. - use
UlpfecSendBuilderfromulpfec::UlpfecSendBuilderBuilder forUlpfecSendInterceptor. - use
UlpfecSendInterceptorfromulpfec::UlpfecSendInterceptorProduces ULPFEC (RFC 5109) for outgoing media. - use
UlpfecStreamPacketizerfromulpfec::UlpfecStreamPacketizerBuilds the RTP packets of a FEC stream sent apart from the media (RFC 5109 7.2, 14.1). - use
validate_ulpfec_schemefromulpfec::validate_schemeCheck the mask rules of RFC 5109 7.4 that relate the FEC packets of one group. - use
XR_DEFAULT_GMINfromxr::DEFAULT_GMINThe Gmin of the VoIP Metrics burst model (RFC 3611 section 4.7.2 recommends 16). - use
XR_DEFAULT_INTERVALfromxr::DEFAULT_INTERVALHow often the blocks are written when no interval is configured: about once per regular RTCP report of a video session. - use
XR_DEFAULT_MAX_BLOCK_SIZEfromxr::DEFAULT_MAX_BLOCK_SIZEThe largest size, in octets, of a Loss RLE, Duplicate RLE or Packet Receipt Times block when the stream'sxr-formatgives none, and the default ofXrReportBuilder::with_max_block_size. RFC 3611 section 7: "applications SHOULD place an upper limit on the size of the XR report blocks they employ", and "the "thinning" techniques described in Section 4.1 permit the packet-by-packet report …
Generated from the sources of rtci-interceptor 0.5.0 at its release tag. Items made by macros and methods are on docs.rs.