Files
VallierDevandClaude Opus 5.5 ebef246486 Port mapping: advertise and accept 256 KB data-channel messages
The viewer assumed webrtc-rs's missing a=max-message-size meant 64 KB and
refused larger port-mapping frames, stalling uploads after the first
frame. Advertise 262144 in the answer sent to the viewer and vendor webrtc
with a 256 KB data-channel receive buffer (upstream u16::MAX). Verified
with the official Mac viewer: 20 MB upload 10 MB/s, 20 MB download and
5 concurrent downloads, checksums match. Docs and v0.1.4 notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-15 08:14:24 +08:00

17 KiB
Raw Permalink Blame History

webrtc-rs changelog

Unreleased

v0.7.0

  • Added support for insecure/deprecated signature verification algorithms, opt in via SettingsEngine::allow_insecure_verification_algorithm #342.
  • Make RTCRtpCodecCapability::payloader_for_codec public API #349.
  • Fixed a panic in calculate_rtt_ms #350.
  • Fixed TrackRemote missing at least the first, sometimes more, RTP packet during probing. #387

Breaking changes

  • Change RTCPeerConnection::on_track callback signature to |track: Arc<TrackRemote>, receiver: Arc<RTCRtpReceiver>, transceiver: Arc<RTCRtpTransceiver>| #355.

  • Change RTCRtpSender::new signature to |receive_mtu: usize, track: Option<Arc<dyn TrackLocal + Send + Sync>>, transport: Arc<RTCDtlsTransport>, media_engine: Arc<MediaEngine>, interceptor: Arc<dyn Interceptor + Send + Sync>, start_paused: bool,| #377.

  • Change API::new_rtp_sender signature to |&self, track: Option<Arc<dyn TrackLocal + Send + Sync>>, transport: Arc<RTCDtlsTransport>, interceptor: Arc<dyn Interceptor + Send + Sync>,| #377.

  • Change RTCRtpTransceiver::sender signature to |&self| -> Arc<RTCRtpSender> #377.

  • Change RTCRtpTransceiver::set_sender_track signature to |self: &Arc<Self>, sender: Arc<RTCRtpSender>, track: Option<Arc<dyn TrackLocal + Send + Sync>>,| #377.

  • Change RTCRtpTransceiver::set_sender signature to |self: &Arc<Self>, s: Arc<RTCRtpSender>| #377.

  • Change RTCRtpTransceiver::receiver signature to |&self| -> Arc<RTCRtpReceiver> #377.

  • Change RTCRtpTransceiver::set_receiver signature to |&self, r: Arc<RTCRtpReceiver>| #377.

  • Change RTCPeerConnection::add_transceiver_from_kind signature to |&self, kind: RTPCodecType, init: Option<RTCRtpTransceiverInit>,|, RTCRtpTransceiver::RTCRtpSender сreated without a track #377.

  • Change RTCPeerConnection::add_transceiver_from_track signature to |&self, track: Arc<dyn TrackLocal + Send + Sync>, init: Option<RTCRtpTransceiverInit>,| #377.

  • Change RTCPeerConnection::mid return signature to Option<String> #375.

  • Make functions non-async #402:

    • MediaEngine:
      • get_codecs_by_kind;
      • get_rtp_parameters_by_kind.
    • RTCRtpTransceiver:
      • sender;
      • set_sender;
      • receiver.
    • RTPReceiverInternal:
      • set_transceiver_codecs;
      • get_codecs.
    • RTCRtpSender:
      • set_rtp_transceiver;
      • has_sent.
    • TrackRemote:
      • id;
      • set_id;
      • stream_id;
      • set_stream_id;
      • msid;
      • codec;
      • set_codec;
      • params;
      • set_params;
      • onmute;
      • onunmute.
  • Change RTPReader::read signature to |&self, buf: &mut [u8], attributes: &Attributes| -> Result<(rtp::packet::Packet, Attributes)> #450.

  • Change RTCPReader::read signature to |&self, buf: &mut [u8], attributes: &Attributes| -> Result<(Vec<Box<dyn rtcp::packet::Packet + Send + Sync>>, Attributes)> #450.

v0.6.0

  • Added more stats to RemoteInboundRTPStats and RemoteOutboundRTPStats #282 by @k0nserv.
  • Don't register video/rtx codecs in MediaEngine::register_default_codecs. These weren't actually support and prevented RTX in the existing RTP stream from being used. Long term we should support RTX via this method, this is tracked in #295. #294 Remove video/rtx codecs contributed by k0nserv
  • Add IP filter to WebRTC SettingEngine #306
  • Stop sequence numbers from increasing in TrackLocalStaticSample while the bound RTCRtpSender have directions that should not send. #316
  • Add support for a mime type "audio/telephone-event" (rfc4733) #322
  • Fixed a panic that would sometimes happen when collecting stats. #327 by @k0nserv.
  • Added new extension marshaller/unmarshaller for VideoOrientation, and made marshallers serializable via serde #331 #332
  • Updated minimum rust version to 1.60.0
  • Added a new write_rtp_with_extensions method to TrackLocalStaticSample and TrackLocalStaticRTP. #336 by @k0nserv.
  • Added a new sample_writer helper to TrackLocalStaticSample. #336 by @k0nserv.
  • Increased minimum versions for sub-dependencies:
    • webrtc-data version to 0.6.0.
    • webrtc-ice version to 0.9.0.
    • webrtc-media version to 0.5.0.
    • webrtc-sctp version to 0.7.0.
    • webrtc-util version to 0.7.0.

Breaking changes

  • Allowed one single direction for extmap matching. #321. API change for MediaEngine::register_header_extension.
  • Removed support for Plan-B. All major implementations of WebRTC now support unified and continuing support for plan-b is an undue maintenance burden when unified can be used. See “Unified Plan” Transition Guide (JavaScript) for an overview of the changes required to migrate. #320 by @algesten.
  • Removed 2nd argument from RTCCertificate::from_pem and guard it with pem feature #333
  • Renamed RTCCertificate::pem to serialize_pem and guard it with pem feature #333
  • Removed RTCCertificate::expires #333
  • RTCCertificate::get_fingerprints no longer returns Result #333
  • Make functions non-async #338:
    • RTCDataChannel:
      • on_open;
      • on_close;
      • on_message;
      • on_error.
    • RTCDtlsTransport::on_state_change;
    • RTCIceCandidate::to_json;
    • RTCIceGatherer:
      • on_local_candidate;
      • on_state_change;
      • on_gathering_complete.
    • RTCIceTransport:
      • get_selected_candidate_pair;
      • on_selected_candidate_pair_change;
      • on_connection_state_change.
    • RTCPeerConnection:
      • on_signaling_state_change;
      • on_data_channel;
      • on_negotiation_needed;
      • on_ice_candidate;
      • on_ice_gathering_state_change;
      • on_track;
      • on_ice_connection_state_change;
      • on_peer_connection_state_change.
    • RTCSctpTransport:
      • on_error;
      • on_data_channel;
      • on_data_channel_opened.

v0.5.1

v0.5.0

Changes

Breaking changes

Other improvememnts

We made various improvements and fixes since 0.4.0, including merging all subcrates into a single git repo. The old crate repos are archived and all development will now happen in https://github.com/webrtc-rs/webrtc/.

Subcrate updates

The various sub-crates have been updated as follows:

  • util: 0.5.3 => 0.6.0
  • sdp: 0.5.1 => 0.5.2
  • mdns: 0.4.2 => 0.5.0
  • stun: 0.4.2 => 0.4.3
  • turn: 0.5.3 => 0.6.0
  • ice: 0.6.4 => 0.8.0
  • dtls: 0.5.2 => 0.6.0
  • rtcp: 0.6.5 => 0.7.0
  • rtp: 0.6.5 => 0.6.7
  • srtp: 0.8.9 => 0.9.0
  • scpt: 0.4.3 => 0.6.1
  • data: 0.3.3 => 0.5.0
  • interceptor: 0.7.6 => 0.8.0
  • media: 0.4.5 => 0.4.7

Their respective change logs are found in the old, now archived, repositories and within their respective CHANGELOG.md files in the monorepo.

Contributors

A big thanks to all the contributors that have made this release happen:

Prior to 0.5.0

Before 0.5.0 there was no changelog, previous changes are sometimes, but not always, available in the GitHub Releases.