rtciv0.5.0

rtci 0.4.0

Released 2026-11-29.

From CHANGELOG.md of rtci at its release tag.

The first release of the 0.4 line: train 37, the SHOULD pass of the clause-by-clause conformance work. No public API was removed or changed (the SemVer Check of the train compares with 0.3.0 and passes: additions only); the version is a new 0.x minor line because twenty-six defaults change, each listed under "Behaviour changes" with the setting that gives the 0.3 form where there is one: the pacer shares waiting streams by priority, RFC 8888 feedback goes early when a report's share is waiting, MID / RID header extensions leave a stream once the peer has reported it, removeTrack keeps the sender's stream and its BYE rules follow RFC 8108, an RTX stream nothing declares is associated by the request it answers, H.264 / H.265 format parameters are written by direction, SCTP probes a closed window rather than accepting past it, authenticated bad DTLS handshake messages get a fatal alert, a received a=remote-candidates is parsed and ignored, and more. Security: a DTLS Certificate message no longer allocates the length it announces before the octets arrive. Fixed before the release: five defects an independent review of the train found (RFC 8888 early reports could be forced one per packet; no BYE for a colliding SSRC after removeTrack; FlexFEC probe clusters under-filled; stale retransmission requests could suppress NACKs; pacer weights stale after an SSRC change). New: RTCPeerConnection::handle_datagram_too_big and OnPathMtuExceeded, RTCRtpSender::max_packet_expansion, RTCRtpReceiver::video_orientation, remote a=framerate / a=content, the RFC 4733 redundant tone sender. Audit: 3 MUST rows open, none violated (as 0.3.0); 17 SHOULD rows open (0.3.0: 63). The capacity-instrument baseline is re-recorded on this tree; the merge-point rule holds against 0.3.0.

Security

  • A DTLS Certificate message no longer allocates the certificate length it announces before the octets arrive (conf/fuzz-3-corpora-oracles-regressions). HandshakeMessageCertificate::unmarshal sized each certificate's buffer from its three-octet length (vec![0; len]) and then read into it, so a ten-octet message announcing a 16 MiB certificate cost a 16 MiB zeroed allocation before failing. The buffer now grows with what is read; the message is refused as before. Test: rtci-dtls/tests/certificate_allocation.rs.

Behaviour changes

  • rtci-video's VideoSender encodes at most at the size the peer's a=imageattr permits (conf/media-27-cvo-receive-and-imageattr; RFC 7742 section 6: "Senders SHOULD interpret and honor this attribute by limiting the encoded resolution to the indicated maximum size"; RFC 9429 section 3.6.2; audit row RFC7742-6-2). Before each picture VideoSender::send_frame asks the engine's RTCRtpSender::send_resolution and the pipeline's resolution steps start from the answer: a 640x360 camera under a=imageattr:* recv [x=[48:320],y=[48:180]] goes as 320x180 (it went as 640x360). When no set of the peer can be satisfied (the picture is below every minimum, or only non-square pixels are accepted) the picture is not encoded and send_frame returns Error::Engine ("the encoding MUST NOT be transmitted"). Only a peer that sends a=imageattr recv sees a change (browsers send none); the engine's wire and negotiation defaults are unchanged. rtci-video is not published.
  • RFC 7728 pause waits for a media boundary (conf/rtcp-5-pause-resume-shoulds; RFC 7728 section 6.3: "Pausing transmission SHOULD only be done when reaching an appropriate place to pause in the stream, like a media boundary that avoids a media receiver to trigger repair or concealment actions"; audit row RFC7728-6.3-1). PauseResumeInterceptor (installed only with configure_pause_resume, for streams that negotiated ccm pause) paused a stream at the end of the hold-off period, in the middle of a video frame if one was being written. Now, when the hold-off ends (or at once with nowait) a stream whose last packet did not end a frame plays on until the packet with the marker bit, or pauses before a packet with a new RTP timestamp (the next frame), at most PAUSE_MEDIA_BOUNDARY_MAX_WAIT (200 ms) later; PAUSED then names the frame's last packet. It still reports pausing state meanwhile, and a RESUME plays it. Audio streams (every packet a frame) and streams whose last packet ended a frame pause when the hold-off ends, as before. No setting gives the old timing: no browser negotiates ccm pause, so no peer depends on it.
  • The RFC 7728 receiver refrains from PAUSE after another receiver's RESUME (RFC 7728 section 8.1, audit row RFC7728-8.1-2): a RESUME read with the PauseID of the last PAUSE this endpoint sent for that stream stops the PAUSE's retransmissions, and PauseResumeHandle::pause for the stream sends nothing for two report intervals, as after a REFUSED.
  • PAUSED goes at once to an endpoint that appears during a pause (RFC 7728 section 8.2, audit row RFC7728-8.2-5): while a stream is paused or local paused, a CNAME the RTCP session has not seen before sends PAUSED with the current PauseID and asks the session to carry it in the next two Regular packets (the section 6.4 count for a local pause).
  • H.264 and H.265 format parameters are written by their role for the section's direction (conf/payload-8-fmtp-parameters; RFC 6184 section 8.2.2 Table 6, RFC 7798 section 7.2.2 Table 1: "A receiver SHOULD understand all media type parameters"). Every media type parameter of both payload formats now has its role in the engine (configuration, receiver capability, stream property, parameter sets, offer/answer, operation point: fmtp::h264 and fmtp::h265 PARAMETERS), and what this endpoint writes in an offer, an answer or a later offer follows it:
    • a sendonly section no longer states receiver capabilities (max-fs, max-mbps, max-br, max-recv-level, deint-buf-cap, H.265 max-lsr, max-fps, depack-buf-cap, ...: RFC 6184 section 8.2.2 "MUST NOT be present when the direction attribute is "sendonly"", RFC 7798 section 7.2.2 the same, Table 1 "-");
    • a recvonly section no longer states the properties or parameter sets of a sent stream (sprop-interleaving-depth, sprop-max-don-diff, sprop-vps, ...: Table 6 / Table 1 "-"); H.265's sprop-segmentation-id and sprop-spatial-segmentation-idc stay (P in every column);
    • an offer never states H.265's recv-sub-layer-id (Table 1 "X: MUST NOT be present"). H.264's level-asymmetry-allowed stays in every direction (Table 6 marks it "-" for one-way sections, but section 8.2.2 decides each direction's level from its presence "in either the offer or the answer"). The default codecs carry none of these parameters, so the default offers and answers, and every pinned browser answer (tests/fixtures/browser-sdp-answers), are unchanged; an application's registered format, or the depack-buf-cap an answer to a reordering H.265 offer adds, is what changes in one-way sections. Before, an application's format line was written unchanged whatever the direction.
  • An H.265 receiver's max-lps, max-lsr, max-br and max-fps are send limits (RTCRtpSender::send_restrictions; RFC 7798 section 7.1), as H.264's max-fs, max-mbps and max-br were: picture size and luma samples per second in pixels, max-br in CpbBrNalFactor units (1100 bits per second), max-fps in pictures per 100 seconds (whole frames per second, rounded down); the smaller of each with the a=rid restriction. Before, an H.265 format's receiver limits restricted nothing.
  • Tests: tests/jsep_answer_fmtp.rs::a_sendonly_description_states_no_receiver_capability, a_recvonly_description_states_no_property_of_a_sent_stream, recv_sub_layer_id_is_never_offered, neither_the_answer_nor_a_later_offer_states_the_peers_h26x_parameters; send_limits.rs::an_h265_receivers_limits_are_send_limits_in_their_units; the table and filter unit tests in fmtp/h264/h264_test.rs and fmtp/h265/h265_test.rs. Audit rows RFC6184-8.2.2-15 and RFC7798-7.2.2-20 (SHOULD) partial -> tested; RFC6184-8.2.2-8 and RFC7798-7.2.2-8 (MUST) n/a -> tested.
  • An RTX stream nothing declares is associated with the original stream whose request it answers (conf/rtx-3-association-by-request; RFC 4588 section 5.3, RFC 5576 section 5; audit rows RFC4588-5.3-1, RFC4588-5.3-2, and RFC5576-5-6). In a receiver of several original streams (an a=ssrc-group:SIM section without a=ssrc-group:FID, or rid layers when the RepairedRtpStreamId is not negotiated), an RTX packet from an unknown SSRC was dropped for good. The receiver now remembers the NACKs it sends for those streams and associates the RTX SSRC with the one stream that has the packet's original sequence number outstanding (3 s after the last request at most; CNAMEs, when known, must agree). Never on a guess: no match, two matches or a padding-only probe associates nothing. RFC 4588's MUST NOT comes with it: while such streams await association, a NACK leaves without the sequence numbers another of them has outstanding, and asks for them once that request is answered, lapsed or resolved. Unchanged: streams with a declared RTX stream (FID, as browsers write it), rid layers with the RepairedRtpStreamId, and receivers of one stream (associated by apt). No setting: the old behaviour dropped the RTX stream.
  • An undeclared media SSRC takes the place of the one declared source that left (conf/rtx-3-association-by-request; RFC 5576 section 5: "If only a single source with a given CNAME has collided, the other RTP session members can infer a correspondence between the source's old and new SSRC IDs"; audit row RFC5576-5-6, now tested). In a section that declares several sources (a=ssrc-group:SIM) a media packet from an undeclared SSRC was dropped. It now takes over the stream of the declared source that left (RTCP BYE, or the RTCP session's member timeout, RFC 3550 6.3.5) when exactly one of the section's declared sources has left and not come back, counting only sources whose CNAME is the new one's where both are known. Zero or several, or a contradicting CNAME: dropped as before. The track carries on under the new SSRC without a second announcement; its RTX stream is associated again by request.
  • The XR blocks a remote a=rtcp-xr asks for are sent (conf/rtcp-6-xr-answer-and-bounds; RFC 3611 section 5.2: "For "sendonly" and "sendrecv" media stream offers that specify unilateral "rtcp-xr" attribute parameters, the answerer SHOULD send the corresponding XR blocks"; audit row RFC3611-5.2-1). The unilateral formats of the remote description's a=rtcp-xr (pkt-loss-rle, pkt-dup-rle, pkt-rcpt-times, stat-summary, voip-metrics) are now negotiated in the remote form whatever this endpoint registered, so the receiving stream's feedback carries them and the default XR generator (configure_extended_reports) writes the blocks; 0.3.0 dropped them in the feedback intersection and sent none. This endpoint's own a=rtcp-xr does not repeat them (it would ask the peer for blocks): an answer is what it was. Only a peer that signals such a format sees a change; the recorded browser descriptions carry rcvr-rtt=all alone. The same holds for a remote answer, as section 5.2 asks of the offerer of a "sendrecv" offer.
  • Per-packet XR blocks are bounded by default (RFC 3611 section 7: "applications SHOULD place an upper limit on the size of the XR report blocks they employ"; audit row RFC3611-7-1). A Loss RLE, Duplicate RLE or Packet Receipt Times block is thinned (section 4.1) to XR_DEFAULT_MAX_BLOCK_SIZE (256 octets), or to the stream's signalled size when that is smaller; 0.3.0 thinned only to a signalled size, so one block could cover 65,533 sequence numbers. XrReportBuilder::with_max_block_size changes the limit.
  • The pacer shares what waits in it among the streams by priority (conf/pacer-5-priority-recut; RFC 8835 section 4.1: "each stream at each level of priority is being given approximately twice the transmission capacity (measured in payload bytes) of the level below"; RFC 8836 section 2 requirement 6b; audit rows RFC8835-4.1-1, now partial, and RFC8836-2-6b, now tested). The pacer's new media was one queue in the order written, so a stream written above its target took the path from the others whatever their priority. Among the video and FEC streams with packets waiting it now serves by start-time fair queuing over payload octets, each stream weighted by its encoding's priority (very-low 1, low 2, medium 4, high 8, the weights the congestion controller's target is already divided by; a stream's RTX and FEC streams weigh with it; equal priorities share equally). Each stream still leaves in the order written; retransmissions keep their place ahead of new media and are charged to their stream's share; audio is still never queued and padding still waits for spare budget. What changes on the wire: with several video streams waiting at once (several senders, or the layers of a simulcast sender, written above their targets, or a burst larger than the budget) their packets interleave by weight instead of leaving in the order written, and the queue time bound then discards first the frames of the streams over their share. With one stream waiting nothing changes. The peer connection gives the pacer the weights when a description is applied and after setParameters.
    • New, additive (rtci-interceptor): PacerPriorities (#[non_exhaustive], new, into_packet), the write-ward carrier of the weights, exported at the crate root.
    • Cost: nothing on the path of a packet that leaves when it is written (the Interceptor/Pacer/write+poll benchmark's path: queue empty, budget to spare) and nothing allocated per packet; for a packet that waits, a search of the few streams that waited since the queue last held no new media (kept in a vector that is cleared, not freed), and, with several streams waiting, a search of the queue up to the chosen stream's oldest packet.
  • RFC 8888 feedback leaves early rather than split (conf/ccrows-14-rfc8888-report-fits-mtu; RFC 8888 section 3.1: the reporting interval "SHOULD be chosen such that feedback packets ... fit within the path MTU"). The generator makes its report due as soon as a stream has its share of one report of Rfc8888Builder::with_max_report_size waiting (1200 octets: 590 packets for one stream, 144 each for four), and the interval starts again from there; before, such a burst waited for the interval and went as several reports split to fit. At the 50 ms shortest interval that takes about 11,800 packets a second on one stream, so ordinary calls do not see it. Splitting (3.1-18) stays for a driver that runs the timeout late. No API change. Audit: RFC8888-3.1-19 tested.
  • No RFC 6051 or abs-capture-time timestamp in the two seconds around the end of a month (conf/rtp-11-leap-second-rest; RFC 7164 section 5: "generating or using NTP timestamps during the entire last second of a day on which a positive leap second has been scheduled SHOULD be avoided"; section 5.1 lets an endpoint assume one at the end of every month, as the RTCP session's sender reports already do). The ntp-64 / ntp-56 stamping interceptor stamps no packet whose NTP time falls in the last second of a month or the one after, and RTCRtpSender::write_rtp_with_capture_time leaves out the element when the capture time it is given falls there (the packet is sent either way). RFC 8888 feedback keeps its report timestamp there by decision: holding congestion feedback two seconds would trip the sender's feedback timeout (docs/conformance/draft-work.md #25). No API change. Audit: RFC7164-5-4 tested (the NTP timeline is one clock reading plus monotonic time: a new test shows it counts seconds uniformly through a month end); RFC7164-5-3 and RFC8834-4.10-1 stay partial with the departure recorded.
  • A FEC encoder leaves a stream with RTX to retransmission while the round trip is within the latency budget (conf/fec-16-rfc8854-fec-policy; RFC 8854 section 8: "WebRTC implementations SHOULD prefer using RTX or Flexible FEC retransmissions instead of FEC when the connection RTT is within the application's latency budget"; audit row RFC8854-8-1, now tested). The FlexFEC draft-03, RFC 8627 FlexFEC and ULPFEC encoders sent FEC by the reported loss whatever the round trip. They now read the round trip the RTCP session measured to the receiver of each protected stream (RtcpSessionEvent::RoundTripTime), and a stream that can be repaired by RTX (nack and an RTX stream negotiated; or RFC 8627 FlexFEC retransmissions on) gets no FEC while that round trip is within the budget: 150 ms by default (FEC_DEFAULT_LATENCY_BUDGET; ITU-T G.114). Beyond it, before the first measurement, for a stream without RTX, and with a fixed amount (with_adaptive_rate(false)) nothing changes. The default interceptor set runs no FEC encoder, so the default chain is unchanged; configure_ulpfec_sessions and the opt-in FEC of DefaultInterceptorOptions now send no FEC to a stream with RTX on short paths. The Chrome profile's budget is 20 ms (profile row fec.latency-budget: libwebrtc's hybrid NACK/FEC sends no delta-frame FEC under that round trip), so its ULPFEC in RED goes on above 20 ms. The 0.3 form: with_latency_budget(None) on the builders, DefaultInterceptorOptions::fec_latency_budget = None, configure_ulpfec_sessions_with(.., None) (the application paying for proactive FEC, the clause's "unless").
  • FEC protects only the base-layer frames of a layered codec (conf/fec-16-rfc8854-fec-policy; RFC 8854 section 8: "implementations SHOULD only apply FEC to these base layer frames"; audit row RFC8854-8-4, now tested). The encoders protected every packet. They now read each packet's temporal layer (VP8 TID, VP9 layer indices, H.265 TID, AV1 OBU extension header) and leave a packet of a layer above the base out: ULPFEC skips it, the FlexFEC encoders close the block there and protect what it holds (a flexible mask of that length; for rows and columns the complete rows). A packet that names no layer is protected as before. The 0.3 form: with_base_layer_only(false) on the builders.
  • RFC 8627 rows and columns follow the burst length of the losses (conf/fec-16-rfc8854-fec-policy; RFC 8627 section 8: "It is RECOMMENDED that the amount and type (row, column, or both) of FEC protection is adjusted dynamically based on the packet loss rate and burst loss length observed"; audit row RFC8627-8-3, now tested). With FlexFecProtection::RowAndColumn configured and the adaptive rate on, the runs of lost packets in the transport-wide feedback (and RFC 8888 reports of the protected streams) make the protection rows for isolated losses (section 1.1.3), columns for bursts, and both for a mix (section 1.1.4). Flexible masks (the default shape) and a configured row or column shape are unchanged.
  • RFC 8627 FlexFEC fills bandwidth probe clusters with repair packets (conf/fec-17-fec-probe-padding; RFC 8854 section 8: "when probing bandwidth ... FEC data SHOULD be used as the additional data"; audit row RFC8854-8-3, missing -> partial). A probe cluster the pacer sends was filled with padding-only RTX packets by the NACK responder. With an RFC 8627 FlexFEC encoder in the chain (DefaultInterceptorOptions::video_flexfec, on in the StrictRfc profile, or a chain built by hand) the encoder now fills what the cluster's media leaves (the pacer's ProbeFill) with repair packets over the newest base-layer source packets of the stream that sent last (at most 16, within the repair window), and the responder pads none of it; between FlexFEC peers without RTX (RFC 8627 1.1.7) clusters that had nothing to pad on now carry FEC. The repair packets are not taken out of the media target. The default chain (no FEC encoder), ULPFEC and FlexFEC draft-03 chains, and chains without a pacer still pad. The 0.3 form: FlexFecSendBuilder::with_probe_fill(false).
  • replaceTrack(null) and removeTrack no longer say RTCP BYE (conf/rtp-14-bye-and-report-aggregation; RFC 8108 section 6.2: "Temporary suspension of media transmission using a particular RTP stream (SSRC) needs to maintain that SSRC as an active participant, by continuing RTCP transmission for it", and "If an endpoint needs to restart an RTP stream after sending an RTCP BYE for its SSRC, it needs to generate a new SSRC value for that stream"; audit row RFC8108-6.2-2). Both unbound the sender's streams, so the RTCP session said BYE for each SSRC and the remote track was muted; a track given again was then sent on the same SSRCs (W3C keeps them in [[SendEncodings]]), restarting an SSRC after its BYE. Now the streams stay bound while the sender has no track: each SSRC stays a participant and goes on reporting (RR once it has not sent for two intervals), no BYE goes out, the remote track is not muted, and a track given again resumes on the same SSRCs with no negotiation. The BYE goes when the transceiver stops (RTCRtpTransceiver::stop), as before. A renegotiation while the sender has no track re-binds nothing; what it changed is bound when a track returns. libwebrtc does the same (VideoRtpSender::ClearSend only detaches the source; the send stream and its RTCP stay). No setting gives the old form.
  • A stream minted on the reporting SSRC does not restart it after its BYE (RFC 8108 section 6.2, audit row RFC8108-6.2-2). A receive-only endpoint's first stream is minted on the SSRC its RTCP session reports from (RFC 8108 6.1); when that stream waited for a negotiation while another sender started first, the session retired the reporting SSRC with a BYE, and the waiting stream later started on it. Now that sender is given a new SSRC as soon as the reporting SSRC retires: silently when no description carried it yet (the usual case), else as after an SSRC collision (previous-ssrc in the next offer, negotiation-needed).
  • MediaEngine::register_codec refuses a FlexFEC format (video/flexfec, video/flexfec-03) whose clock rate is not larger than 1000 Hz, with Error::SdpInvalidValue (RFC 8627 5.1 and draft-03 5.1: the rate "SHALL be larger than 1000 Hz"). A remote FlexFEC format is negotiated only at a registered rate, so none of 1000 Hz or less is offered or answered. The default codecs (90 kHz) are unchanged (conf/audit-12-must-row-verdicts).
  • DTLS 1.2: a bad handshake message in a record that authenticates ends the association with a fatal alert, as it does under DTLS 1.3, where three kinds were dropped without one, so a peer that kept sending them was never given up on (RFC 6347 4.2.7, RFC 5246 7.2.2): after the handshake, a protected handshake message that is neither part of the peer's last flight again nor a renegotiation request (unexpected_message); protected handshake fragments that do not decode, during the handshake or after it (decode_error). A retransmitted flight, whole or cut differently, is still dropped quietly, a renegotiation request still draws the no_renegotiation warning, and unprotected records are still discarded (RFC 6347 4.1.2.7). RFC6347-4.2.7-3 is tested (conf/dtls-36-authenticated-bad-records).
  • The values of a received a=remote-candidates are ignored (RFC 9429 5.8: "MUST be parsed ... but their values are ignored"): an answer to an offer carrying the attribute names the pair this side's ICE agent selected as its m= / c= destination, no longer the local candidate the offer names. The two differ only when the offer and the agent disagree (the race of RFC 8839 Appendix B); both are listed as candidates either way. Browsers never send the attribute (libwebrtc does not parse it; Firefox parses it and does not use it). New, additive: SettingEngineBuilder::with_answer_destination_from_remote_candidates(true) restores the RFC 8839 4.4.2 form for a peer that is an RFC 8839 ICE agent rather than a JSEP endpoint (no profile turns it on). Two lite agents are unchanged: the controlled one still takes the pair the values name and answers with that candidate alone, the only way it learns the controlling agent's choice (RFC 8445 8.2, RFC 8839 4.4.2.2). Rows: RFC9429-5.8.2-8 violated to tested, RFC8839-4.4.2-4 n/a to conflict; draft-work.md #30 updated and #31, spec-issues.md row 33 (conf/jsep-100-remote-candidates-ignored).
  • MID, RtpStreamId and RepairedRtpStreamId stop once the peer has reported on the stream (conf/rtp-12-sdes-extension-send-policy; RFC 7941 sections 4.2.3, 4.2.4.1 and 4.2.4.3, RFC 9143 section 15; audit rows RFC7941-4.2.3-1, -4.2.4-1 and -4.2.4-2, now tested). Every RTP packet carried the SDES header extensions when they were negotiated. Now each SSRC's packets carry them until the peer's SR or RR reports an extended highest sequence number at or past the first packet with their current values; after that write_rtp leaves them out of that SSRC's packets (an extension block left empty goes too), before the interceptor chain, so FEC, NACK resends and the pacer see the packet as sent. A new SSRC (a new stream, an SSRC a collision or a clock rate change moved to), a changed value and every completed negotiation (an answer applied) start over: Firefox builds its MID filter only for a bundled section, so a section bundled by renegotiation needs the MID again. RTX packets carry the stream's MID and RepairedRtpStreamId on every packet: the NACK responder puts them back when the packet repaired went without them. With RTCP from the peer this saves the elements' bytes (4 to 8 octets a packet with a short MID and RID) after the first report, about a second in. libwebrtc does the same (always_send_mid_and_rid off by default; it stops at the first report naming the SSRC), and Chromium, Firefox and WebKit keep the SSRC they bound once the elements stop. Setting for the old form: SettingEngineBuilder::with_sdes_header_extensions_on_every_packet(true) (for a middlebox that needs them on every packet).
  • rtci-video's VideoSender leaves room for the engine's header extensions (conf/rtp-13-header-extension-mtu-budget; RFC 7941 section 4.2.2, RFC 8852 section 3.3; audit rows RFC7941-4.2.2-1 and RFC8852-3.3-4, now tested). It gave its pipeline the whole DEFAULT_RTP_MTU (1200) for the RTP packet, and the engine then added the MID, the transport-wide sequence number, abs-send-time and the rest on top: key frames went out in packets of up to about 1216 octets of RTP (and 2 more as RTX). Its payloads are now smaller by RTCRtpSender::max_packet_expansion (about 18 octets with the default extensions and RTX), so the RTP packet on the wire stays within DEFAULT_RTP_MTU. No setting: a SendPipeline made directly keeps the mtu its RtpStreamConfig gives.
  • SCTP: once a SACK advertised a_rwnd 0, a new DATA chunk above the largest TSN received is dropped even when silly window avoidance closed the window with some space left (RFC 9260 6.2: "When the receiver's advertised window is 0, the receiver MUST drop any new incoming DATA chunk with a TSN larger than the largest TSN received so far"). Before, such a zero window probe was taken whenever it found space. The window counts as closed until it has space to reopen (its update SACK is then due at once), so a chunk that arrives after the application has read enough is taken. A chunk filling a gap below the largest TSN is taken as before; with_zero_window_overcommit still lets the next in-sequence chunk through (conf/sctp-31-zero-window-probe).

Added

  • The remote description's a=framerate and a=content are reported per transceiver (conf/jsep-99-framerate-and-content; RFC 9429 section 5.8.2: "Other attributes that are not relevant to JSEP may also be present, and implementations SHOULD process any that they recognize"; audit row RFC9429-5.8.2-29). New RTCRtpTransceiver::remote_framerate (the section's a=framerate, RFC 8866 section 6.13, in frames per second) and RTCRtpTransceiver::remote_content (the tags of its a=content, RFC 4796 section 5). Both are None until a remote description states them; a later description replaces them, a section without them clears them, and a rollback brings back the last stable description's. Reported, not applied: no default changes.
  • RTCRtpReceiver::video_orientation(packets) (conf/media-27-cvo-receive-and-imageattr; RFC 7742 section 4: "All implementations SHOULD support interpretation of the R0 and R1 bits"; audit row RFC7742-4-4): the Coordination of Video Orientation element (3GPP TS 26.114 section 7.4.5: rotation, camera, flip) of a received video frame, typed, from the frame's packets; None without the element or when the receiver does not read the negotiated extension (RFC 8834 section 10). The receiving counterpart of RTCRtpSender::write_rtp_with_video_orientation. Additive. rtci-video: VideoReceiver::video_orientation(ssrc, rtp_timestamp) gives the orientation each released picture was sent with, and SendPipeline::set_top_resolution sets the size the highest resolution step encodes at (what VideoSender uses for a=imageattr). Turning the picture stays the renderer's.
  • rtci_interceptor::PAUSE_MEDIA_BOUNDARY_MAX_WAIT (200 ms): the longest a pausing stream waits for the end of a video frame (above).
  • The RFC 9260 6.2 zero window renege, as a setting (conf/sctp-30-zero-window-renege-setting; audit rows RFC9260-6.2-3, -6.2-29, -6.2-30). RFC 9260 6.2: "When the receiver's advertised window is 0, ... if the new incoming DATA chunk holds a TSN value less than the largest TSN received so far, then the receiver SHOULD drop the largest TSN held for reordering and accept the new incoming DATA chunk." New sctp::TransportConfig::with_zero_window_renege(bool) and SettingEngineBuilder::with_sctp_zero_window_renege(bool), off by default and in the Rfc, Chrome and Performance profiles, on in StrictRfc (behaviour profile row sctp.zero-window-renege). On, a DATA chunk that fills a gap after a SACK advertised a_rwnd 0 takes the place of the largest TSN held for reordering (a chunk of a message that is not readable whole and not in partial delivery): that chunk leaves its stream's reassembly queue and the next SACK's Gap Ack Blocks (6.2, "MUST NOT include"), and the peer sends it again. Off (unchanged), the gap filler is taken with nothing dropped, up to one message beyond the receive buffer. Not the default because the drop is a renege of a gap-acknowledged chunk (6.2.1), and dcSCTP, the SCTP stack of Chromium, WebKit and (since Firefox 146) Firefox, never sends such a chunk again (net/dcsctp/tx/outstanding_data.cc @ a222406d): a reliable channel from a browser would stop for good at it. New sctp::AssociationStats::get_num_reneged / inc_reneged count the chunks a receiver reneged on. Additive (SemVer minor): a private field of TransportConfig and of AssociationStats.
  • Application-supplied call quality in VoIP Metrics blocks (RFC 3611 section 4.7.5: R factor, external R factor, MOS-LQ and MOS-CQ "SHOULD be provided"; audit row RFC3611-4.7.5-1). rtci-interceptor: XrReportHandle (set_call_quality, clear_call_quality, call_quality), CallQuality, XrReportBuilder::build_with_handle, XrReportBuilder::with_max_block_size and XR_DEFAULT_MAX_BLOCK_SIZE. The figures come from a call quality model of the decoded media (ITU-T G.107), which is the application's; a stream's next VoIP Metrics blocks carry what it gave, and a value outside its range, or none, is sent as 127 ("unavailable") as before. Additive: XrReportBuilder::build is unchanged.
  • Audio RED depth and reduced-bitrate copies from the peer connection, and an opt-in loss rule (conf/red-4-loss-rule-and-depth; RFC 8854 sections 4.1, 5, 7 and 8; audit row RFC8854-4.1-3, now tested; RFC8854-7-3 stays partial). No default changes. SettingEngineBuilder::with_audio_redundancy_depth(n): n earlier packets in each RED packet (one by default, as libwebrtc sends), so n packets lost in a row come back (RFC 8854 4.1: "if multi-packet protection is needed, the aforementioned redundant encoding ... SHOULD be used"). RedundantEncoding (rtci-interceptor), put on a written packet as Attribute::Custom: the lower-bitrate encoding the RED packets after it carry instead of a copy (one larger than the primary is not used, RFC 2198 section 3); RedEncoder:: encode_packet_with_redundant / encode_rtp_with_redundant (rtci-rtp). SettingEngineBuilder::with_audio_redundancy_on_loss(true) / RedAudioBuilder::with_redundancy_on_loss: under AudioRedundancy::WhenPreferred, a stream that negotiated RED goes in RED while its receiver reports 0.5% loss or more (smoothed, RED_AUDIO_LOSS_ON), back to the codec under half of it. Off by default: RED about doubles the audio rate, and RFC 8854 section 8 warns that against congestion loss it "may actually make the situation worse"; the default waits for a capacity-instrument measurement. configure_audio_redundancy_with_builder installs a RED interceptor of the application's making. Additive.
  • FEC_DEFAULT_LATENCY_BUDGET, FecLossPattern; FecRate::with_latency_budget, latency_budget, round_trip_time, on_round_trip_time, retransmission_preferred, fec_packets_with, fec_packets_for, on_acknowledgements, loss_pattern, adaptive; with_latency_budget and with_base_layer_only on FlexFecSendBuilder (with_probe_fill too, conf/fec-17-fec-probe-padding), FlexFec03SendBuilder and UlpfecSendBuilder (rtci-interceptor). rtci: DefaultInterceptorOptions::fec_latency_budget (the struct is #[non_exhaustive]), configure_ulpfec_sessions_with. Additive (conf/fec-16-rfc8854-fec-policy).
  • audio/tone sender with RFC 2198 redundancy and a loss-driven packetization interval (conf/media-28-tone-payload-sender; RFC 4733 sections 4.4.1 and 4.4.3; audit rows RFC4733-4.4.1-2 and RFC4733-4.4.3-1, both SHOULD, missing -> tested). New in rtci-rtp::codec::tone, additive (no existing item changes): RedundantToneSender cuts tones as ToneSender does, and each packet is a RED payload whose primary is the new tone report and whose redundant block is the report before it, kept across tones ("the sender SHOULD combine new and old tone reports in the same RTP packet using RFC 2198"; TONE_DEFAULT_REDUNDANCY 1, with_redundancy for more, TONE_DEFAULT_MAX_PAYLOAD_SIZE 1000 octets). ToneIntervalControl::new(initial, maximum, max_increase) takes each RTCP report block's fraction lost: at or above TONE_HIGH_LOSS_FRACTION (26/256, GCC-02 section 6's 10 %) the interval of initial and interim reports grows by at most max_increase, up to maximum ("a matter of configuration"); at or below TONE_LOW_LOSS_FRACTION (5/256, 2 %) it steps back towards initial; with_loss_thresholds changes both. No default changes: audio/tone is not a default codec and nothing in the engine sends it; ToneSender is unchanged.
  • DefaultInterceptorOptions::rtcp_report_aggregation_limit and RtcpSessionBuilder::with_report_aggregation_limit (RFC 8108 section 5.3.1: "If compatibility with non-updated endpoints is a concern, the number of reports from different SSRCs aggregated into a single compound RTCP packet SHOULD either be limited to two reports or aggregation ought not be used at all"; audit row RFC8108-5.3.1-1 missing -> tested). Some(2) or Some(1) keeps every compound packet, BYE packets included, to that many SSRCs' SR / RR; an SSRC left out reports alone on its own timer, and the reception report blocks go with the SSRC that carries them. None, the default in every behaviour profile, aggregates as before (every SSRC whose report fits the MTU). For an application whose peers predate RFC 8108 and so do not divide a compound packet's size by its reporting SSRCs.
  • A datagram-too-big input (conf/dtls-37-datagram-too-big; RFC 6347 4.1.1.1 and RFC 9147 section 4.4: "If there is a transport protocol indication [...], then the DTLS record layer MUST inform the upper layer protocol of the error"). Additive API, no default changes: RTCPeerConnection::handle_datagram_too_big(now, transport, path_mtu, quoted) takes an ICMP Packet Too Big / Fragmentation Needed, or a send refused for its size, for the path a transport sends DTLS on; RTCPeerConnectionEvent::OnPathMtuExceeded tells the application (path MTU, largest datagram, largest DTLS write); rtci-dtls: Endpoint::datagram_too_big, DatagramTooBig, DTLSConn::datagram_too_big, DTLSConn::max_datagram, DTLSConn::sent_datagram_begins_with; rtci-sctp: Association::handle_packet_too_big. The DTLS 1.2 and 1.3 handshakes cut their records for the reported size and send a waiting flight again at once (once until its timer); SCTP takes a report whose quote matched a DTLS datagram sent as an RFC 8899 4.6.2 input (back to BASE_PLPMTU, never up). Guards: an MTU below 576 / 1280 is ignored (RFC 9147 4.4), so is a quote of nothing sent (RFC 8899 4.6.1), and no report raises a size (RFC 8201 4). rtci-stream-driver reports a send refused with EMSGSIZE / WSAEMSGSIZE; its sockets do not read ICMP errors. Audit: RFC6347-4.1.1.1-5 and RFC9147-4.4-7 (MUST) missing to tested (open MUST 6 to 4); RFC8261-6.1-6 (MUST NOT) n/a to tested; RFC9147-4.4-6, RFC9147-4.4-12 and RFC9260-10-7 (SHOULD) n/a to tested.
  • SettingEngineBuilder::with_sdes_header_extensions_on_every_packet (rtp-12, above).
  • RTCRtpSender::max_packet_expansion (rtp-13): the most octets the engine adds to a packet the sender writes (the header extension elements it stamps, with the block header and padding, and RTX's original sequence number), for sizing payloads to an MTU (RFC 7941 section 4.2.2).

Fixed

  • FlexFEC probe fill no longer under-fills probe clusters (RFC 8854 section 8: FEC as the additional data of a probe; audit row RFC8854-8-3). With an RFC 8627 FlexFEC encoder and its probe fill on (FlexFecSendBuilder::with_probe_fill, the default; the default chain has no FlexFEC, video_flexfec is off), the NACK responder left every paced cluster to the encoder, which makes at most one repair packet per source packet of the newest base-layer run. On a VP8 / VP9 / AV1 / H.265 stream with temporal layers (base layer only, the default) that run is the newest base-layer frame, one to three packets: clusters went out with a few packets instead of up to 64 kB, probe_estimate measured nothing from them, and probing found no capacity. The encoder now says how many octets of repair packets it made for each cluster and the responder pads the rest on the RTX stream, so a cluster always has the octets asked for; one that FEC fills entirely gets no padding. Tests: rtci-interceptor/tests/fec_probe_fill.rs::a_probe_cluster_fec_cannot_fill_is_padded_to_its_size, ::a_probe_cluster_fec_fills_gets_no_padding.
  • RFC 7728 PAUSED sent before any packet names the next packet (RFC 7728 section 8.2 as corrected by Verified erratum 5540: "or, if no packet has been sent, the value one less than the sequence number that will be chosen for the next packet sent (modulo 2^32)"; audit row RFC7728-8.2-3). A stream paused before it sent anything (a pause asked for early, or a stream bound initially paused, RFC 8853) said 0. PauseResumeInterceptor now chooses the first sequence number itself, at random as RFC 3550 5.1 has it: every PAUSED names it minus one, and the first packet sent carries it, whatever number the application wrote (later packets keep the same offset). Streams that sent before pausing are unchanged.
  • RFC 8888 early reports could be forced by a remote peer (train 37 review, from ccrows-14). The early report of RFC 8888 section 3.1 (a report that would not fit is sent at once) was triggered by the sequence span waiting, so a peer jumping its sequence number by about 16000 per packet forced up to eight 1200-octet reports per packet received, and one forward jump a burst of some 27. The test now counts packets that arrived and no report has described, and an early report is never built sooner than 5 ms after the previous build.
  • An SSRC collision on a sender without a track sent no BYE (train 37 review, from rtp-14; RFC 3550 8.2: "MUST send an RTCP BYE packet for the old identifier"). After removeTrack / replaceTrack(null) the sender's streams stay bound and report (RFC 8108 6.2), but the collision handler looked for the SSRC in the signalled track, which has no codings then, and rebind_local_streams returned early for such a sender: the old SSRC went on reporting. The handler now looks in the encodings, and a sender without a track unbinds each stream whose SSRC its encodings no longer hold (BYE), keeping a stream that lost only its RTX / FEC SSRC bound without that flow.
  • Stale retransmission requests could fill their bound and hold back NACKs (train 37 review, from rtx-3; RFC 4588 5.3). The requests remembered for the association of an RTX stream by request were aged out only for the streams awaiting association in the receiver being asked; a stream that stopped awaiting another way (a later description declaring its a=ssrc-group:FID) kept its entries for good, and once they reached the 8192 bound every new request of a stream still awaiting association was held. Every lapsed request, and every request of a stream no longer awaiting association, is now dropped before a NACK is checked.
  • Pacer priorities went stale when a sender's SSRC changed mid-call (train 37 review, from pacer-5; RFC 8835 section 4.1). The pacer weighs waiting streams by media SSRC, and the weights were written only when a description was applied and after setParameters; a sender moved to a new SSRC by an RTCP-detected collision (RFC 3550 8.2), a signalled one (RFC 5576 5), an RFC 7160 clock-rate switch or a retired reporting SSRC (RFC 8108 6.2) was weighed as an unnamed low stream until the next negotiation. Each of those now writes the weights again.

Documentation

  • Audit only: three SHOULD rows whose notes predated the code they describe are now tested (conf/audit-10-should-stale-rows, no engine change): TWCC-3.1.1-2 (a packet reported not received is held for one more feedback, rtpfb/history.rs), RFC7587-5-1 (congestion control is in the standard interceptor set) and RFC8834-7.1-4 (RTCRtpTransceiver::set_receive_bandwidth writes b=TIAS / b=AS). Each cited test was checked against a mutation of the behaviour. RFC8842-5.5-3 (data accepted on the old and the new association while a new one forms) moves from missing to partial: the SRTP half is implemented and tested (the previous keys still read late packets); the DTLS-record half is still missing (the endpoint is replaced at once).
  • docs/conformance.md no longer lists RTCDTMFSender as "Not implemented, on purpose" (it was listed twice); RTCRtpSender::dtmf() implements it. The status block of docs/conformance/audit/rfc4733.md now says what exists: the telephone-event type, the default formats and the DTMF sender.
  • Audit only (conf/audit-11-should-decisions, no engine change), the coordinator's SHOULD decisions of 2026-11-29: five rows n/a as superseded for this endpoint by a named clause (FLEXFEC03-5.2.1-1 by RFC 8627 5.2.1; RFC4588-3.1-1 by RFC 8834 6.1 and RFC 9429 5.2.1; RFC8866-5.8-3 by RFC 9429 5.10; RFC8839-4.4.2-2 and -4.4.2-3 by RFC 9429 5.8); RFC8854-5.2-1 from conflict to partial, the verdict of RFC8854-5.1-1 (RFC 8627 1.1.7 is not a governing text in RULES.md's sense); hook notes on MDNSICE-3.2.1-4, RFC6762-5.5-1/-2; the REMB part of RFC4585-4.2-9's note corrected (REMB is generated). draft-work.md #27 to #30, spec-issues.md rows 31 and 32.
  • Audit only (conf/dtls-35-bad-record-rows, no engine change): the DTLS rows on a peer that persistently sends bad messages (RFC 6347 4.2.7, RFC 9147 5.10) are split in two. Records that fail authentication are n/a, superseded by the discard clause of the same RFC (4.1.2.7 / 4.5.2): new rows RFC6347-4.2.7-4 and RFC9147-5.10-5. Messages the peer is shown to have sent: RFC9147-5.10-2 is tested (every authenticated error is a fatal alert at once); RFC6347-4.2.7-3 stays partial, because DTLS 1.2 still drops three kinds of authenticated handshake record without an alert or a count (the row names them). Recorded as draft-work.md #26 and spec-issues.md row 30, with the DTLS 1.3 bis draft's resolution (tlswg/dtls13-spec #283, PR #330).
  • Audit (conf/audit-12-must-row-verdicts): MUST verdicts re-read against the code, which raises the open MUST rows from 3 to 6. Now open: RFC9429-5.8.2-8 violated (the a=remote-candidates values give an answer its default destination, where RFC 9429 5.8 ignores them; RFC8839-4.4.2-4 goes from tested to n/a, superseded by that clause as its siblings were in audit-11); RFC6347-4.1.1.1-5 and RFC9147-4.4-7 missing (no input carries a PMTU-exceeded indication to DTLS and its upper layer, though the engine takes ICMP for ICE). From n/a to tested, the clause binding code in this repository: RFC4588-4-19 (padding-only RTX probes, new test a_probe_on_the_rtx_stream_is_padded_as_any_rtp_packet), RFC4585-6.3.1.1-2 and RFC5104-4.3.1.2-4 (rtci-video holds a requested key frame through a congestion pause, new test for FIR), RFC3550-5.1-13 (rtci-video timestamps from the capture clock), FLEXFEC03-5.1-1 and RFC8627-5.1-1 (the rate check above). SHOULD RFC4588-6.3-2 partial to tested: rtci-video gives the NACK generator its playout horizon by default. Each pending its mutation run.

Testing

  • Five SHOULD rows closed by tests of behaviour that already existed (conf/media-26-should-tests; no code change, no default change):
    • AV1RTP-10-2 and RFC8852-5-1: between two peers built with the defaults the Dependency Descriptor, MID and RtpStreamId header extensions leave encrypted under Cryptex (offered and answered by default), and the RTCP SDES items (CNAME, MID, RtpStreamId) in encrypted SRTCP (tests/header_extension_encryption_by_default_rtc2rtc.rs).
    • RFC3264-5.1-7: an offer of each direction lists formats the offerer sends, receives or both, and only what the codec preferences keep (tests/jsep_offer_formats_by_direction.rs).
    • RFC3389-4-1: a comfort noise packet carries the timestamp of the start of its noise period (a_comfort_noise_packet_carries_the_start_of_its_noise_period).
    • RFC4733-2.5.1.4-3: in a session that negotiated RED for telephone events, with RED sent whenever negotiated, every DTMF event packet leaves as plain telephone-event (event_packets_leave_plain_in_a_session_that_negotiated_red_for_events).
  • A Gcc sender's A_hat update runs within every response_time under the drafts' feedback cadence (conf/gcc-10-update-interval-under-per-frame-cadence; audit row GCC-5.5-15, partial -> setting, measured). New test rtci-interceptor/tests/congestion_feedback_cadence.rs::the_estimator_is_updated_within_every_response_time_under_the_drafts_cadence: a Gcc congestion controller fed by a transport-wide feedback receiver with CongestionFeedbackCadence::PerFrame (the StrictRfc profile's) over a 40 ms round trip, one 40 kbit/s audio stream and an RTCP share holding one report a second: every gap between estimator updates is at most 140 ms (100 ms + RTT, draft-ietf-rmcat-gcc-02 section 5.5); the default cadence leaves 250 ms gaps at that rate, which the test asserts as its precondition. The default stays, on the measurement of audit rows GCC-3-2 / TWCC-3-4. No behaviour change. Audit note fixed: RFC8888-3.1-19 described the default RFC 8888 interval as following the RTCP bandwidth, 100 to 400 ms; it is 50 to 250 ms sized to 5% of the media received.
  • Browser cells for a gap filled through a closed SCTP receive window (conf/sctp-30-zero-window-renege-setting): the browser sends 200 messages, each of its own length, on an ordered channel to a Rust peer with an 8 KiB receive buffer that loses one DATA chunk twice at the wire (examples/interop-peer ?sctp_receive_buffer=, ?drop_inbound_data=, ?zero_window_renege=1, scenario "echo": false; the report's new sctpStats and inboundDropped). The default form must deliver all 200 with nothing reneged; the RFC form must renege and deliver all 200, and is n/a when the channel is seen to stop at the reneged chunk. Every browser of the matrix is dcSCTP (Firefox since 146, Mozilla bug 1997590), and each stops there.