rtci 0.21.1+brainwires.4
Released 2026-11-19.
From CHANGELOG.md of rtci at its release tag.
ICE restarts that keep data flowing and four JSEP / webrtc-stats points the Deno WebRTC extension's web-platform-tests run into (Brainwires/deno ext/webrtc). FORK.md lists everything the fork carries over upstream.
Features
- rtp_transceiver:
RTCRtpTransceiver::set_associable_with_remote_offerlets an application mark a transceiver it made foraddTransceiverso a remote offer's new media section does not take it (RFC 9429 §5.10: only one "created by addTrack" is a candidate). The default keeps the old behaviour. - ice:
Agent::media_path(), the selected pair's path or, during a restart, the one the session had when the restart was applied.
Bug Fixes
- ice: an ICE restart keeps using the previously selected pair until the restart selects a new one (RFC 8445 §9).
apply_restartdropped it at once (the offerer at setLocalDescription of the restart offer, the answerer at setRemoteDescription of it), so every DTLS / SRTP packet, and every data channel message, between that point and the new generation's first nomination was lost on both peers. This holds withdiscard_local_candidates_during_ice_restarttoo, which forgets what was signalled but doesn't close the selected pair's socket. - peer_connection:
a=msidis one line per MediaStream of the sender (RFC 9429 §5.2.1), without duplicates; a sender in none writes its track's own stream id. One line with the track's stream id was written whateverset_streamshad been given. - peer_connection: a remote
a=inactivemedia section sets the transceiver's direction to inactive for the answer and no longer stops it, so a later offer, or a rollback, resumes it. Only a rejected section stops a transceiver. - stats: the selected candidate pair's local and remote candidates are always in the report; a peer-reflexive remote candidate was never registered, so the pair's
remoteCandidateIdnamed an object the report did not have.
Testing
tests/ice_restart_keeps_path_rtc2rtc.rs: two peers on a simulated UDP network in virtual time, a message each way after every signalling step of a restart and on the new pair, with and without discarding the local candidates.rtp_transceivertests for onea=msidline per stream and a transceiver that a remote offer may not take.tests/ice_restart_by_webrtc_interop.rstreats a datagram its loopback-bound socket can't send to a non-loopback candidate (EADDRNOTAVAIL, macOS) as lost, as the sibling tests do, instead of failing.