rtciv0.5.0

rtci

A sans-I/O WebRTC implementation: peer connections with ICE, DTLS-SRTP, SCTP data channels, RTP/RTCP and JSEP negotiation. 52 public modules, 383 items at 0.5.0.

rtci

A Rust implementation of the WebRTC specification using a sans-I/O architecture. This crate provides full WebRTC functionality while giving you complete control over networking, threading, and async runtime integration.

rtci::data_channel

Peer-to-peer Data API

  • structRTCClosedDataChannelfrom closed::RTCClosedDataChannelThe final attributes of a closed data channel, read with RTCPeerConnection::closed_data_channel.
  • structRTCDataChannelRepresents a WebRTC data channel for bidirectional peer-to-peer data transfer.
  • structRTCDataChannelInitfrom init::RTCDataChannelInitDictionary for configuring properties of an RTCDataChannel.
  • structRTCDataChannelMessagefrom message::RTCDataChannelMessageRTCDataChannelMessage represents a message received from the data channel. IsString will be set to true if the incoming message is of the string type. Otherwise, the message is of a binary type.
  • enumRTCDataChannelStatefrom state::RTCDataChannelStateDataChannelState indicates the state of a data channel.
  • typeRTCDataChannelIdHandle identifying a data channel within a particular peer connection.
  • constMAX_KEPT_CLOSED_DATA_CHANNELSfrom closed::MAX_KEPT_CLOSED_DATA_CHANNELSHow many closed data channels a peer connection keeps the final attributes of.
  • useStreamIdfrom sctp::StreamId

rtci::media_stream

MediaStream API

  • structConstrainRangefrom track_constraints::ConstrainRangeRepresents a range of numeric values with constraints.
  • structMediaStreamRepresents a stream of media content.
  • structMediaStreamTrackfrom track::MediaStreamTrackRepresents a single media track within a media stream.
  • structMediaStreamTrackEventmediacapture-main 4.4 MediaStreamTrackEvent: a track added to or removed from a stream, for that stream's addtrack or removetrack event. A remote stream's are derived from RTCRemoteStreamsChange (media_stream_track_events).
  • structMediaTrackCapabilitiesfrom track_capabilities::MediaTrackCapabilitiesDescribes the capabilities of a media stream track.
  • structMediaTrackConstraintsfrom track_constraints::MediaTrackConstraintsConstraints to apply to a media track.
  • structMediaTrackConstraintSetfrom track_constraints::MediaTrackConstraintSetA set of constraints for a media track.
  • structMediaTrackSettingsfrom track_settings::MediaTrackSettingsRepresents the actual settings of a media track.
  • structMediaTrackSupportConstraintsfrom track_supported_constraints::MediaTrackSupportConstraintsDescribes which constraints are supported by the user agent.
  • enumConstrainfrom track_constraints::ConstrainRepresents a constraint that can be either a single value or a range.
  • enumMediaStreamTrackEventKindThe type of a MediaStreamTrackEvent.
  • enumMediaStreamTrackStatefrom track_state::MediaStreamTrackStateRepresents the lifecycle state of a media stream track.
  • fngenerate_idA new identifier for a stream or a track, generated as mediacapture-main 4.2 and 4.3 ask: a UUID (RFC 9562 version 4, random), 36 characters.
  • typeMediaStreamIdUnique identifier for a media stream.
  • typeMediaStreamTrackIdfrom track::MediaStreamTrackIdUnique identifier for a media stream track.

rtci::peer_connection

Peer-to-peer connections

  • modcertificateX.509 certificate management for WebRTC DTLS authentication.
  • modconfigurationWebRTC peer connection configuration module.
  • modcryptexCryptex ([RFC 9335]) signalling: rtpHeaderEncryptionPolicy (webrtc-extensions), the a=cryptex attribute in offers and answers, and the SRTP contexts' use of it once both sides have signalled it.
  • modeventWebRTC peer connection event types.
  • modidentityThe peer's identity (RFC 8827 sections 5.1.4 and 7.4).
  • modmessageWebRTC message types for media and data transport.
  • modpriorityWebRTC Priority Control (W3C webrtc-priority) and the DSCP values of RFC 8837: the RTCPriorityType of encodings and data channels, and the Differentiated Services codepoint each outgoing datagram is to be marked with.
  • modrtc_errorRTCError and RTCErrorDetailType (W3C webrtc-pc section 11): the WebRTC-specific detail an API layer attaches to an OperationError, and that error events carry.
  • modsdpSession Description Protocol (SDP) types and utilities.
  • modsrflxServer-reflexive candidates gathered by the engine (RFC 8445 section 5.1.1.2): a STUN Binding request to each stun: / stuns: server of the configuration, from each host candidate's base, on each transport (RFC 9429 section 5.2.1).
  • modstateWebRTC connection state types.
  • modtransportWebRTC transport layer types for ICE, DTLS, and SCTP.
  • modturn_discoveryTURN server auto-discovery (RFC 8155), as an opt-in helper: the URLs an application adds to its configuration when it has no TURN server of its own, which the engine then resolves and uses like any other.
  • modturn_streamsThe TURN clients the engine runs itself (RFC 8656, RFC 7350, RFC 6062): who gathers from turn: servers over UDP, turn_streams::RelayGathering.
  • modturn_tlsTLS for TURN over TLS (turns:, RFC 8656 section 3.1, RFC 7350 for the URI), as a StreamLayer around rustls used sans-I/O: rustls::ClientConnection reads and writes byte buffers, never a socket.
  • structRTCPeerConnectionThe RTCPeerConnection interface represents a WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed.
  • structRTCPeerConnectionBuilderBuilder for creating RTCPeerConnection instances.

rtci::peer_connection::certificate

X.509 certificate management for WebRTC DTLS authentication.

  • structRTCCertificateX.509 certificate used to authenticate WebRTC peer-to-peer communications.
  • structRTCCertificateKeyHandleA handle to an RTCCertificate's private key (W3C webrtc-pc 4.9.2 [Handle]): it refers to the key object the crypto provider holds and gives no access to the key's bytes. Two handles are equal when they refer to keys with the same public key.
  • structRTCSerializedCertificateThe serialized form of an RTCCertificate (W3C webrtc-pc 4.9.2): what the serialization steps keep, a handle to the key instead of the key.
  • constDEFAULT_CERTIFICATE_LIFETIMEThe lifetime of a certificate RTCCertificate::generate_certificate makes when none is given: 30 days (W3C webrtc-pc section 4.9.1: "a user agent ... SHOULD set it to 30 days"; the generateCertificate algorithm uses it as the default expiry).
  • constMAX_CERTIFICATE_LIFETIMEThe longest lifetime a generated certificate gets (W3C webrtc-pc section 4.9: "the user agent MUST cap the value at 365 days").
  • useCertificateParamsfrom rcgen::CertificateParams

rtci::peer_connection::configuration

WebRTC peer connection configuration module.

  • modbehaviour_profileBehaviour profiles: one switch for every default where the engine and an RFC, or the engine and libwebrtc (Chrome), choose differently.
  • modinterceptor_registryInterceptor Registry - Configuration helpers for RTP/RTCP interceptor chains.
  • modmedia_engineMedia engine configuration for codecs and RTP extensions.
  • modremote_bitrate_limitThe bitrate limit of the remote description (b=TIAS / b=AS, RFC 9429 section 5.10) as the upper bound of the congestion controller's estimate.
  • modsetting_engineAdvanced configuration engine for WebRTC peer connections.
  • structRTCAnswerOptionsfrom offer_answer_options::RTCAnswerOptionsOptions for creating SDP answers.
  • structRTCConfigurationA Configuration defines how peer-to-peer communication via PeerConnection is established or re-established. Configurations may be set up once and reused across multiple connections. Configurations are treated as readonly. As long as they are unmodified, they are safe for concurrent use.
  • structRTCConfigurationBuilderBuilder for creating RTCConfiguration instances.
  • structRTCIceServerfrom crate::peer_connection::transport::ice::server::RTCIceServerICEServer describes a single STUN and TURN server that can be used by the ICEAgent to establish a connection with a peer.
  • structRTCOfferOptionsfrom offer_answer_options::RTCOfferOptionsOptions for creating SDP offers.
  • enumRTCBundlePolicyfrom bundle_policy::RTCBundlePolicyMedia bundling policy for ICE candidate gathering and transport usage.
  • enumRTCIceTransportPolicyfrom ice_transport_policy::RTCIceTransportPolicyICE transport policy controlling which candidate types are used for connectivity.
  • enumRTCRtcpMuxPolicyfrom rtcp_mux_policy::RTCRtcpMuxPolicyRTCP multiplexing policy controlling ICE candidate gathering for RTCP.
  • enumRTCSdpSemanticsfrom sdp_semantics::RTCSdpSemanticsSDP semantics determining the style of SDP offers and answers.
  • typeICEGatherPolicyfrom ice_transport_policy::ICEGatherPolicyORTC-compatible alias for ICETransportPolicy.
  • constMAX_ICE_SERVERSThe most ICE servers a configuration keeps; later ones are ignored (W3C webrtc-pc 4.2.1: "Truncate iceServers to the maximum number of supported elements", which "MUST be at least 32").
  • useBehaviourProfilefrom behaviour_profile::BehaviourProfileWhich family of defaults a peer connection takes; see the module documentation.

rtci::peer_connection::configuration::behaviour_profile

Behaviour profiles: one switch for every default where the engine and an RFC, or the engine and libwebrtc (Chrome), choose differently.

  • enumBehaviourProfileWhich family of defaults a peer connection takes; see the module documentation.

rtci::peer_connection::configuration::interceptor_registry

Interceptor Registry - Configuration helpers for RTP/RTCP interceptor chains.

  • structDefaultInterceptorHandlesWhat an application holds on to from the standard interceptor set.
  • structDefaultInterceptorOptionsThe settings of the standard interceptor set. The default of each is what the RFCs say; the other value is the behaviour of a browser or of an earlier version of this crate.
  • structTransportHandlesThe congestion controller and circuit breaker handles of each transport of a peer connection, by RTP session number (0 is the first transport). A transport's appear when its first stream is bound; they stay while the transport has streams.
  • enumCongestionFeedbackWhich congestion control feedback is offered, and so which the remote may report arrivals with.
  • fnconfigure_abs_send_timeRegisters the abs-send-time header extension (http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time) on video, so that it is offered beside transport-wide congestion control and ack ccfb, and answered when a peer offers it: a peer that runs neither (REMB with abs-send-time, the receive-side variant of draft-ietf-rmcat-gcc-02 section 3) gets its send times, stamped by the …
  • fnconfigure_audio_redundancyAdds redundant audio data, RED (RFC 2198), in both directions (RedAudioInterceptor, Slot::Redundancy): a local audio stream whose section negotiated a RED format with its own encoding as primary and redundancy (a=fmtp:63 111/111, the default codecs' form) is sent as RED with a copy of the previous packet when the remote description lists RED ahead of the stream's codec …
  • fnconfigure_audio_redundancy_withconfigure_audio_redundancy, with audio_redundancy deciding when a local stream is sent in RED. The peer connection installs it, with SettingEngineBuilder::with_audio_redundancy, in any chain that does not fill the slot.
  • fnconfigure_audio_redundancy_with_builderconfigure_audio_redundancy with the RED interceptor builder makes: when a stream is sent in RED, how many earlier packets each RED packet carries (with_redundancy), whether the loss turns it on (with_redundancy_on_loss). The peer connection installs it from SettingEngineBuilder::with_audio_redundancy, with_audio_redundancy_depth and with_audio_redundancy_on_loss.
  • fnconfigure_circuit_breakerInstalls the RTP circuit breaker (RFC 8083) at Slot::CircuitBreaker with the RFC's recommended parameters, and returns the handle that reports what it stopped.
  • fnconfigure_congestion_controlConfigure send-side congestion control around estimator.
  • fnconfigure_congestion_control_feedbackNegotiates RFC 8888 congestion control feedback and reports arrivals with it, without a congestion controller.
  • fnconfigure_default_header_extensionsRegisters the header extensions every WebRTC endpoint is expected to offer, beside the ones the interceptors above need:
  • fnconfigure_extended_reportsAdds the RTCP XR report blocks a receiver writes about each source (RFC 3611 section 4: Loss RLE, Duplicate RLE, Packet Receipt Times, Statistics Summary, VoIP Metrics) for the remote streams that negotiated them with a=rtcp-xr (section 5.1). A stream that did not gets none. Part of register_default_interceptors.
  • fnconfigure_key_frame_requestsDelivers inbound key-frame requests (RTCP PLI and FIR) to the application.
  • fnconfigure_nackConfigures NACK (Negative Acknowledgement) interceptors for packet loss recovery.
  • fnconfigure_pause_resumeAdds RTP stream pause and resume (RFC 7728) and offers it for audio and video: a=rtcp-fb:<pt> ccm pause (section 9; the full implementation, config=1, without nowait). Returns the handle through which the application asks a remote stream to pause or resume, pauses its own streams by local decision and reads where each stream is.
  • fnconfigure_pause_resume_withconfigure_pause_resume with the interceptor's parameters and, with nowait, the nowait attribute in offers (RFC 7728 section 9.1: "If the offerer believes that itself and the intended answerer are likely the only endpoints in the RTP session").
  • fnconfigure_rapid_synchronisationRFC 6051 rapid synchronisation, as RFC 8834 section 5.2.1 recommends: registers the 64-bit NTP timestamp header extension (urn:ietf:params:rtp-hdrext:ntp-64, section 3.3) on audio and video, so it is offered and answered, and adds the interceptor that stamps it on a local stream that negotiated it (or ntp-56): every packet of the stream's first five seconds, then a frame a second …
  • fnconfigure_receiver_reference_timeNegotiates receiver-side round trip time measurement for video (a=rtcp-fb:<pt> rrtr, libwebrtc's feedback name for RTCP XR receiver reference times, RFC 3611 section 4.4).
  • fnconfigure_rembThe receive-side variant of congestion control (draft-ietf-rmcat-gcc-02 section 3): a REMB for every remote stream that negotiated goog-remb and neither transport-wide congestion control nor RFC 8888, so a sender that only understands REMB still hears what the path carries; and the abs-send-time header extension stamped on the packets of every local stream that negotiated it, as they leave …
  • fnconfigure_rtcp_reportsConfigures RTCP: the RTCP session of the connection.
  • fnconfigure_rtcp_reports_withconfigure_rtcp_reports with the RTCP session built from session, for the settings a session description does not carry.
  • fnconfigure_simulcast_extension_headersRegisters RTP header extensions required for simulcast streaming.
  • fnconfigure_tmmbrOffers TMMBR for audio and video: a=rtcp-fb:<pt> ccm tmmbr (RFC 5104 section 7.1).
  • fnconfigure_tradeoff_notificationsAdds the temporal-spatial trade-off notifications (RFC 5104 section 4.3.3): a local media sender whose stream negotiated ccm tstr answers each request it receives with a TSTN carrying the index it will use. The request itself still reaches the application, which owns the encoder. Part of register_default_interceptors.
  • fnconfigure_twccConfigures full TWCC (Transport-Wide Congestion Control) for bandwidth estimation.
  • fnconfigure_twcc_receiver_onlyConfigures TWCC receiver only (generates feedback for the remote sender).
  • fnconfigure_twcc_sender_onlyConfigures TWCC sender only (the remote peer generates feedback).
  • fnconfigure_ulpfecAdds ULPFEC (RFC 5109) carried in RED (RFC 2198) for video (a=rtpmap:<red> red/90000, a=rtpmap:<ulpfec> ulpfec/90000), in both directions, with the FEC placed as RFC 5109 section 14.2 has it: in the same packets as the media it protects.
  • fnconfigure_ulpfec_sessionsAdds ULPFEC (RFC 5109) for FEC sessions of their own (section 14.1, RTCPeerConnection::add_fec_session, SettingEngineBuilder::with_separate_fec_sessions), in both directions: the encoder at Slot::FecEncoder with its wire tap at Slot::FecWireImage, so the FEC protects each media packet as it leaves, and the decoder at Slot::FecDecoder, which keeps a decoder for every video stream so …
  • fnconfigure_ulpfec_sessions_withconfigure_ulpfec_sessions, the encoder with latency_budget (RFC 8854 section 8: while the round trip measured to the receiver is within it, a stream that has RTX gets no FEC; None sends FEC by the loss whatever the round trip; UlpfecSendBuilder::with_latency_budget).
  • fnconfigure_ulpfec_with_placementconfigure_ulpfec with the placement of FEC data in the RED stream chosen: RedPlacement::WithNextMedia, the form of RFC 5109 section 14.2 and the default, or RedPlacement::OwnPacket, the form libwebrtc sends and the only one it reads.
  • fnconfigure_video_flexfecRFC 8627 FlexFEC for video, in both directions (DefaultInterceptorOptions::video_flexfec, on in the StrictRfc profile; RFC 8854 sections 5.1 and 5.2):
  • fnconfigure_video_red_ulpfecVideo red and ulpfec as Chromium offers them, and ULPFEC in RED in both directions (the Chrome behaviour profile's DefaultInterceptorOptions::video_red_ulpfec):
  • fnconfigure_video_red_ulpfec_withconfigure_video_red_ulpfec, with the transport-wide sequence number, abs-send-time and toffset values zeroed in what the encoder protects and in the decoder's copies when zero_mutable_extensions (libwebrtc's form: UlpfecSendBuilder::with_mutable_extensions_zeroed, UlpfecReceiveBuilder::with_mutable_extensions_zeroed; DefaultInterceptorOptions::ulpfec_zero_mutable_extensions).
  • fnregister_default_interceptorsRegisters a standard set of interceptors for typical WebRTC usage.
  • fnregister_default_interceptors_with_handlesregister_default_interceptors, returning the handles of the congestion controller and the circuit breaker it installs: the supported way for an application to read the congestion controller's target.
  • fnregister_default_interceptors_with_optionsregister_default_interceptors_with_handles with settings other than the defaults.
  • fnregister_default_interceptors_without_congestion_controlThe standard set without congestion control: no estimator, no pacer, no transport-wide sequence numbers on outgoing packets, no circuit breaker. NACK, RTCP reports, congestion control feedback for the remote (RFC 8888 or transport-wide, as negotiated), and key-frame requests are as in register_default_interceptors.
  • constFLEXFEC_DECODER_SLOTWhere the RFC 8627 decoder sits: Slot::Custom(10_310), beside Slot::FecDecoder (10_300): after the arrival recorders, which must report what the path delivered, and before the NACK generator, which must not ask for what FEC rebuilds.
  • constFLEXFEC_ENCODER_SLOTWhere configure_video_flexfec puts the RFC 8627 encoder: Slot::Custom(5_100), beside Slot::FecEncoder (5_000), which ULPFEC may hold. Both are above the NACK responder and the pacer, so repair packets are paced and recorded.
  • constFLEXFEC_WIRE_IMAGE_SLOTWhere the RFC 8627 encoder's wire tap sits: Slot::Custom(1_510), beside Slot::FecWireImage (1_500), below the TWCC sender, so FlexFEC protects each source packet as it leaves (RFC 8627 section 4.1).
  • constVIDEO_FLEXFEC_PAYLOAD_TYPEThe payload type configure_video_flexfec registers video/flexfec under.
  • constVIDEO_RED_PAYLOAD_TYPEThe payload type configure_video_red_ulpfec registers video/red under.
  • constVIDEO_RED_RTX_PAYLOAD_TYPEThe payload type of the RTX format for video/red (apt=116).
  • constVIDEO_ULPFEC_PAYLOAD_TYPEThe payload type configure_video_red_ulpfec registers video/ulpfec under.
  • useRegistryfrom interceptor::Registry
  • useSlotfrom interceptor::Slot

rtci::peer_connection::configuration::media_engine

Media engine configuration for codecs and RTP extensions.

  • structMediaEngineMedia engine managing codecs and RTP capabilities for peer connections.
  • structRTCPacketTimeThe packet times of a media section, in milliseconds: a=ptime, the length of media one packet should carry, and a=maxptime, the most it may carry (RFC 8866 sections 6.4, 6.5). They are what the endpoint that states them would like to receive (RFC 3264 section 5); for Opus they are its ptime and maxptime parameters (RFC 7587 section 7).
  • constMIME_TYPE_AV1AV1 video codec MIME type.
  • constMIME_TYPE_CNComfort noise MIME type (RFC 3389).
  • constMIME_TYPE_FLEX_FECFlexFEC forward error correction MIME type, as published: RFC 8627.
  • constMIME_TYPE_FLEX_FEC03FlexFEC-03 forward error correction MIME type: draft-ietf-payload-flexible-fec-scheme-03, the FlexFEC browsers send. Its coder is interceptor::FlexFec03SendBuilder / interceptor::FlexFec03ReceiveBuilder (opt-in).
  • constMIME_TYPE_G722G.722 audio codec MIME type.
  • constMIME_TYPE_H264H.264 video codec MIME type.
  • constMIME_TYPE_HEVCH.265/HEVC video codec MIME type.
  • constMIME_TYPE_OPUSOpus audio codec MIME type.
  • constMIME_TYPE_PCMAPCMA (G.711 A-law) audio codec MIME type.
  • constMIME_TYPE_PCMUPCMU (G.711 μ-law) audio codec MIME type.
  • constMIME_TYPE_REDMIME type for redundant audio data, RED (RFC 2198), as a=rtpmap:<pt> red/48000/2.
  • constMIME_TYPE_RTXRTX (Retransmission) MIME type.
  • constMIME_TYPE_SMPTE336MSMPTE ST 336 (KLV) metadata MIME type
  • constMIME_TYPE_TELEPHONE_EVENTTelephone-event MIME type for DTMF tones.
  • constMIME_TYPE_ULP_FECULP FEC (Uneven Level Protection Forward Error Correction) MIME type.
  • constMIME_TYPE_VP8VP8 video codec MIME type.
  • constMIME_TYPE_VP9VP9 video codec MIME type.
  • constVP9_RECEIVER_LIMITSThe receiver capabilities the default VP9 formats state with MediaEngine::set_vp9_receiver_limits (RFC 9628 section 6: max-fr in frames per second, max-fs in macroblocks). The engine does not decode, so these are what a typical decoder takes, the values Firefox offers: 60 frames a second, 12,288 macroblocks (up to 4096 x 3072). An application whose decoder takes less registers its own VP9 …

rtci::peer_connection::configuration::remote_bitrate_limit

The bitrate limit of the remote description (b=TIAS / b=AS, RFC 9429 section 5.10) as the upper bound of the congestion controller's estimate.

  • structRemoteBitrateLimitThe most this endpoint may send, in bits per second, as the remote description says (None: it sets no limit). The peer connection writes it into the chain when an answer is applied, as an Attribute::Custom on an empty RTCP packet (RemoteBitrateLimit::into_packet); RemoteBitrateLimitInterceptor takes it.
  • structRemoteBitrateLimitInterceptorBounds the congestion controller's estimate (Attribute::TargetBitrateChanged) by what the remote description allows this endpoint to send.
  • constREMOTE_BITRATE_LIMIT_SLOTWhere RemoteBitrateLimitInterceptor goes in a chain: between the congestion controller (Slot::CongestionControl, which announces the estimate on the read leg) and the pacer (Slot::Pacer, which reads it), so that everything that reads the estimate reads the bounded one. Wire-ward of the circuit breaker (Slot::CircuitBreaker, 2_500): a slot holds one interceptor, and at 2_500 this one …

rtci::peer_connection::configuration::setting_engine

Advanced configuration engine for WebRTC peer connections.

  • structCandidatesICE candidate gathering and filtering configuration.
  • structDataChannelData-channel configuration for in-band channels.
  • structIceBehaviourWhere the ICE agent follows RFC 8445 / RFC 8489 by default and a browser (libwebrtc) behaviour, or one of this fork's hardenings, can be chosen instead. Every default is the RFC's.
  • structMulticastDNSMulticastDNS configuration for mDNS.
  • structReplayProtectionReplay attack protection window sizes.
  • structSettingEngineAdvanced configuration engine for fine-tuning WebRTC behavior.
  • structSettingEngineBuilderFluent registry for SettingEngine.
  • structTimeoutICE timeout configuration for connection health monitoring.
  • enumAnswerIceOptionsWhat an answer's a=ice-options line says of the trickle and ice2 options (SettingEngineBuilder::with_answer_ice_options). RFC 9429 section 5.3.1 and RFC 8840 section 4.1.3, RFC 8445 section 10 and RFC 8839 section 4.3.2 disagree (docs/conformance/spec-issues.md row 28). Offers always say trickle ice2 (RFC 9429 sections 5.2.1 and 5.2.2); other options of the offer are never echoed.
  • enumDtlsFlightIntervalHow the first DTLS retransmission timer of a peer connection's handshake is chosen (SettingEngineBuilder::with_dtls_flight_interval). The timer doubles on each retransmission either way (RFC 9147 section 5.8.2, RFC 6347 section 4.2.4.1).
  • enumSctpMaxMessageSizeMaximum message size for SCTP data channels.

rtci::peer_connection::cryptex

Cryptex ([RFC 9335]) signalling: rtpHeaderEncryptionPolicy (webrtc-extensions), the a=cryptex attribute in offers and answers, and the SRTP contexts' use of it once both sides have signalled it.

  • enumRTCRtpHeaderEncryptionPolicyRTCRtpHeaderEncryptionPolicy (webrtc-extensions): whether a connection negotiates the encryption of RTP header extensions and CSRCs (Cryptex, RFC 9335).

rtci::peer_connection::event

WebRTC peer connection event types.

  • structRTCKeyFrameRequestEventfrom key_frame_request_event::RTCKeyFrameRequestEventA key-frame request for one encoding of a sender, with where it came from: the payload of RTCPeerConnectionEvent::OnKeyFrameRequestOrigin.
  • structRTCLocalCandidatesNeededEventfrom transport_event::RTCLocalCandidatesNeededEventOnLocalCandidatesNeeded: a transport holds none of the local candidates it had and needs a new set, gathered by the application (the engine has no sockets).
  • structRTCPeerConnectionIceErrorEventfrom ice_error_event::RTCPeerConnectionIceErrorEventICE candidate gathering error event.
  • structRTCPeerConnectionIceEventfrom ice_event::RTCPeerConnectionIceEventICE candidate event (W3C RTCPeerConnectionIceEvent).
  • structRTCRemoteStreamsChangefrom track_event::RTCRemoteStreamsChangeW3C "set the associated remote streams": the remote streams a receiver's track was removed from and added to by a description (mediacapture-main removetrack and addtrack on those streams).
  • structRTCRemoteTrackEventInitfrom track_event::RTCRemoteTrackEventInitThe W3C track event (webrtc-pc 5.1.1 "process the addition of a remote track"): a remote description made the transceiver receive, or added streams to its track. Fired when the description is applied, whether or not media ever arrives; the track starts muted and is unmuted by its first RTP packet (RTCTrackEvent::OnUnmute).
  • structRTCTrackEventInitfrom track_event::RTCTrackEventInitInitialization data for a track event.
  • structRTCTransportEventfrom transport_event::RTCTransportEventAn event fired at one transport of the connection.
  • structTaggedRTCEventAn RTCEvent together with the instant its condition was observed at.
  • enumRTCDataChannelEventfrom data_channel_event::RTCDataChannelEventEvents that can be emitted by an RTCDataChannel.
  • enumRTCEventReserved for future use.
  • enumRTCKeyFrameRequestOriginfrom key_frame_request_event::RTCKeyFrameRequestOriginWho asked for a key frame: the remote peer (and with which message), or this endpoint's own interceptor chain.
  • enumRTCLocalCandidatesNeededReasonfrom transport_event::RTCLocalCandidatesNeededReasonWhy a transport needs a new set of local candidates (RTCLocalCandidatesNeededEvent::reason).
  • enumRTCPeerConnectionEventEvents that can be emitted by an RTCPeerConnection.
  • enumRTCTrackEventfrom track_event::RTCTrackEventEvents related to incoming media tracks.
  • enumRTCTransportEventKindfrom transport_event::RTCTransportEventKindWhat happened to a transport; each kind is one of the events the single-transport variants of RTCPeerConnectionEvent report for the default transport.
  • constICE_SERVER_UNREACHABLEfrom crate::peer_connection::states_events::ICE_SERVER_UNREACHABLEThe STUN error code W3C webrtc-pc section 4.8.3 reserves for a server that could not be reached: "If no host candidate can reach the server, errorCode will be set to the value 701 which is outside the STUN error code range."

rtci::peer_connection::identity

The peer's identity (RFC 8827 sections 5.1.4 and 7.4).

  • structRTCPeerIdentityWhat an identity provider's verification of the peer's assertion established (RFC 8827 section 7.4): the identity it attests, and the fingerprints the assertion was bound to.

rtci::peer_connection::priority

WebRTC Priority Control (W3C webrtc-priority) and the DSCP values of RFC 8837: the RTCPriorityType of encodings and data channels, and the Differentiated Services codepoint each outgoing datagram is to be marked with.

  • enumRTCDscpMarkingHow a connection marks its datagrams (SettingEngineBuilder::with_dscp_marking).
  • enumRTCFlowTypeThe flow types of RFC 8837 Table 1.
  • enumRTCPriorityTypeW3C webrtc-priority RTCPriorityType: the relative priority of a flow.
  • fnallocate_bandwidthDivides total bits per second among flows by their weights (bandwidth_weight), none above its cap (an encoding's maxBitrate): a capped flow gets its cap, and what it leaves goes to the others in proportion to their weights (weighted max-min fairness). Returns one share per flow, in order; with every flow capped below its share, the rest of total is left unallocated.
  • fnbandwidth_weightThe share of a flow at priority against the other flows under the same congestion control (RFC 8835 section 4.1, W3C webrtc-priority 3.2): each level gets "approximately twice the transmission capacity" of the level below, so very-low : low : medium : high is 1 : 2 : 4 : 8.
  • fndscp_forRFC 8837 Table 1: the DSCP of a flow of flow type at priority. Where the table gives two codepoints (video at medium and high priority), the first: the lower drop precedence.
  • constDATA_CHANNEL_DEMAND_HEADROOMWhat the data channels may take of the target beyond what they sent in the last DATA_CHANNEL_RATE_WINDOW: a quarter more, so a channel that sends more than it did can grow into its share (it may always send up to its share: the bound on the association is the whole share).
  • constDATA_CHANNEL_RATE_WINDOWHow long the data channels' send rate is measured over (RFC 8836 section 2, requirement 6a; DataChannelCoupling).
  • constDSCP_BLOCKED_AFTERHow long a marked media flow is sent before the DSCP fallback may judge it blocked.
  • constDSCP_BLOCKED_REPORTSHow many sender or receiver reports from the peer, on the flow's transport and none about the flow, judge it blocked (the first may have been sent before the flow's first packet arrived).
  • constDSCP_DFDefault Forwarding: DSCP 0.
  • constDSCP_EFExpedited Forwarding: DSCP 46.
  • constDSCP_LELower Effort (RFC 8622): DSCP 1. RFC 8837 section 5: used for very-low priority, not CS1.
  • constMIN_SIMULCAST_STREAM_BITRATEThe least an encoding of a simulcast sender is given while it is sent: 30 kbps, the minimum libwebrtc sets for any simulcast layer (video/config/simulcast.cc @ a222406d, kSimulcastFormatsVP8: "The min bitrate is still limited at 30 kbps"), or the encoding's maxBitrate when that is lower.

rtci::peer_connection::rtc_error

RTCError and RTCErrorDetailType (W3C webrtc-pc section 11): the WebRTC-specific detail an API layer attaches to an OperationError, and that error events carry.

  • structRTCErrorW3C RTCError: an OperationError with WebRTC detail (webrtc-pc section 11.1).
  • enumRTCErrorDetailTypeW3C RTCErrorDetailType: which WebRTC failure an RTCError reports.

rtci::peer_connection::srflx

Server-reflexive candidates gathered by the engine (RFC 8445 section 5.1.1.2): a STUN Binding request to each stun: / stuns: server of the configuration, from each host candidate's base, on each transport (RFC 9429 section 5.2.1).

  • enumReflexiveGatheringWho gathers server-reflexive candidates. See SettingEngineBuilder::with_server_reflexive_gathering.
  • constALPN_STUN_NAT_DISCOVERYThe ALPN protocol id of STUN NAT discovery over TLS (RFC 7443 section 3).

rtci::peer_connection::turn_discovery

TURN server auto-discovery (RFC 8155), as an opt-in helper: the URLs an application adds to its configuration when it has no TURN server of its own, which the engine then resolves and uses like any other.

  • fnanycast_urlsThe URLs of the TURN anycast addresses (RFC 8155 section 6) over TCP: the anycast server answers the Allocate with 300 (Try Alternate), and the engine allocates on the unicast server it names. Port 3478, the default of turn:.
  • fndomain_of_identityThe domain of a user identity (RFC 8155 section 4.1.2): the part after the last @ of a SIP URI, a bare JID or an e-mail address, without a sip: / sips: / xmpp: scheme or any parameter. None when there is none.
  • fnurls_for_domainThe port-less TURN URLs of domain (RFC 8155 section 4.2 with RFC 5928): the engine finds each server by S-NAPTR (RELAY with the transport's tag) and SRV. TLS and DTLS first.
  • constMDNS_SERVICESThe DNS-SD service names of TURN servers on the local link (RFC 8155 section 5.1).
  • constTURN_ANYCAST_IPV4The IPv4 TURN anycast address (RFC 8155 section 8, 192.0.0.10/32).
  • constTURN_ANYCAST_IPV6The IPv6 TURN anycast address (RFC 8155 section 8, 2001:1::2/128).

rtci::peer_connection::turn_streams

The TURN clients the engine runs itself (RFC 8656, RFC 7350, RFC 6062): who gathers from turn: servers over UDP, turn_streams::RelayGathering.

  • enumRelayGatheringWho gathers relayed candidates from turn: servers over UDP. See SettingEngineBuilder::with_relay_gathering.

rtci::peer_connection::turn_tls

TLS for TURN over TLS (turns:, RFC 8656 section 3.1, RFC 7350 for the URI), as a StreamLayer around rustls used sans-I/O: rustls::ClientConnection reads and writes byte buffers, never a socket.

  • structTurnTlsConfigHow the engine's TURN-over-TLS connections verify the server (SettingEngineBuilder::with_turn_tls).
  • constALPN_STUN_TURNThe ALPN protocol id of TURN (RFC 7443 section 3).

rtci::peer_connection::message

WebRTC message types for media and data transport.

  • structTaggedRTCMessageAn RTCMessage together with the instant it belongs to.
  • enumRTCMessageMessages that can be sent or received through a peer connection.

rtci::peer_connection::sdp

Session Description Protocol (SDP) types and utilities.

  • structRTCSessionDescriptionfrom session_description::RTCSessionDescriptionRepresents a session description in the SDP offer/answer model.
  • structRTCVideoResolutionRangefrom imageattr::RTCVideoResolutionRangeA range of video frame sizes, in pixels: what a receiver can decode (RFC 9429 section 3.6.1). A range whose minimum exceeds its maximum permits no resolution.
  • enumRTCSdpTypefrom sdp_type::RTCSdpTypeDescribes the type of a session description in the SDP offer/answer model.
  • constRTCP_FB_XRThe stream feedback type of an a=rtcp-xr format other than rcvr-rtt (RFC 3611 section 5.1); its parameter is the xr-format in full.

rtci::peer_connection::state

WebRTC connection state types.

  • enumRTCIceConnectionStatefrom ice_connection_state::RTCIceConnectionStateIndicates the state of the ICE connection.
  • enumRTCIceGatheringStatefrom ice_gathering_state::RTCIceGatheringStateDescribes the state of the ICE candidate gathering process.
  • enumRTCPeerConnectionStatefrom peer_connection_state::RTCPeerConnectionStateIndicates the overall state of the peer connection.
  • enumRTCSignalingStatefrom signaling_state::RTCSignalingStateIndicates the state of the SDP offer/answer negotiation process.

rtci::peer_connection::transport

WebRTC transport layer types for ICE, DTLS, and SCTP.

  • structRTCDtlsFingerprintfrom dtls::fingerprint::RTCDtlsFingerprintDTLS certificate fingerprint for authentication.
  • structRTCDtlsParametersfrom dtls::parameters::RTCDtlsParametersRTCDtlsParameters holds information relating to DTLS configuration.
  • structRTCDtlsTransportProvides access to information about the DTLS transport over which RTP, RTCP and SCTP are sent and received.
  • structRTCIceCandidatefrom ice::candidate::RTCIceCandidateICECandidate represents a ice candidate
  • structRTCIceCandidateInitfrom ice::candidate::RTCIceCandidateInitICECandidateInit is used to serialize ice candidates
  • structRTCIceCandidatePairfrom ice::candidate_pair::RTCIceCandidatePairICECandidatePair represents an ICE Candidate pair
  • structRTCIceParametersfrom ice::parameters::RTCIceParametersICEParameters includes the ICE username fragment and password and other ICE-related parameters.
  • structRTCIceServerfrom ice::server::RTCIceServerICEServer describes a single STUN and TURN server that can be used by the ICEAgent to establish a connection with a peer.
  • structRTCIceTransportProvides access to information about the ICE transport over which packets are sent and received.
  • structRTCSctpTransportProvides access to information about the SCTP transport that carries data channels.
  • structRTCTransportIdIdentifies one of a peer connection's transports.
  • enumRTCDtlsRolefrom dtls::role::RTCDtlsRoleIndicates the role of the DTLS transport in the handshake.
  • enumRTCDtlsTransportStatefrom dtls::state::RTCDtlsTransportStateIndicates the state of the DTLS transport.
  • enumRTCIceCandidateTypefrom ice::candidate_type::RTCIceCandidateTypeIndicates the type of ICE candidate.
  • enumRTCIceComponentfrom ice::component::RTCIceComponentICEComponent describes if the ice transport is used for RTP (or RTCP multiplexing).
  • enumRTCIceProtocolfrom ice::protocol::RTCIceProtocolICEProtocol indicates the transport protocol type that is used in the ice.URL structure.
  • enumRTCIceRolefrom ice::role::RTCIceRoleICERole describes the role ice.Agent is playing in selecting the preferred the candidate pair.
  • enumRTCIceServerTransportProtocolfrom ice::candidate::RTCIceServerTransportProtocolThe protocol used to reach the STUN/TURN server that produced a candidate.
  • enumRTCIceTcpCandidateTypefrom ice::candidate::RTCIceTcpCandidateTypeThe role an ICE-TCP candidate takes when a pair is checked (RFC 6544 §4.5).
  • enumRTCIceTransportStatefrom ice::state::RTCIceTransportStateICETransportState represents the current state of the ICE transport.
  • enumRTCSctpTransportStatefrom sctp::state::RTCSctpTransportStateSCTPTransportState indicates the state of the SCTP transport.
  • useCandidateConfigfrom ice::candidate::CandidateConfig
  • useCandidateHostConfigfrom ice::candidate::CandidateHostConfig
  • useCandidatePeerReflexiveConfigfrom ice::candidate::CandidatePeerReflexiveConfig
  • useCandidateRelayConfigfrom ice::candidate::CandidateRelayConfig
  • useCandidateServerReflexiveConfigfrom ice::candidate::CandidateServerReflexiveConfig

rtci::rtp_transceiver

RTP Media API

  • modrtp_receiverRTP Receiver implementation following the W3C WebRTC specification.
  • modrtp_senderRTP sender module providing WebRTC RTPSender functionality.
  • modsframe_transformW3C webrtc-encoded-transform section 3, the SFrame transforms: RTCRtpSFrameEncryptor and RTCRtpSFrameDecryptor (and, being the same objects without an owner, SFrameEncryptorStream and SFrameDecryptorStream), over rtci::sframe.
  • structRTCRemoteBandwidthWhat the b= lines of a remote media section say (RFC 9429 section 5.10), in bits per second. None: the section has no such line.
  • structRTCRtpReceiverIdIdentifier for an RTCRtpReceiver within a peer connection.
  • structRTCRtpSenderIdIdentifier for an RTCRtpSender within a peer connection.
  • structRTCRtpTransceiverRTCRtpTransceiver represents a permanent pairing of an RTP sender and RTP receiver that share a common mid. The transceiver manages the direction of media flow and codec preferences.
  • structRTCRtpTransceiverInitInitialization parameters for creating an RTCRtpTransceiver.
  • enumRTCFecGroupSemanticsThe semantics of the a=group line that groups a media m= section with the m= section of its FEC session (RFC 5109 section 14.1, RTCPeerConnection::add_fec_session).
  • enumRTCRtpTransceiverDirectionfrom direction::RTCRtpTransceiverDirectionDirection of media flow for an RTP transceiver.
  • typePayloadTypeRTP payload type identifier.
  • typeRepairedStreamIdRepaired RTP stream identifier.
  • typeRTCRtpTransceiverIdInternal identifier for an RTP transceiver.
  • typeRtpStreamIdRTP stream identifier.
  • typeSSRCSSRC (Synchronization Source) identifier.

rtci::rtp_transceiver::rtp_receiver

RTP Receiver implementation following the W3C WebRTC specification.

  • modframe_metadataPer-frame metadata of received encoded frames (W3C webrtc-encoded-transform section 4: RTCEncodedFrameMetadata, RTCEncodedVideoFrameMetadata, RTCEncodedAudioFrameMetadata, and the frame's type).
  • structRTCRtpContributingSourcefrom rtp_contributing_source::RTCRtpContributingSourceInformation about a contributing source (CSRC) or synchronization source (SSRC).
  • structRTCRtpReceiverRepresents an RTP receiver for a media stream track.
  • typeRTCRtpSynchronizationSourcefrom rtp_contributing_source::RTCRtpSynchronizationSourceSynchronization source information.
  • useRTCEncodedAudioFrameMetadatafrom frame_metadata::RTCEncodedAudioFrameMetadataW3C webrtc-encoded-transform 4.4 RTCEncodedAudioFrameMetadata.
  • useRTCEncodedFrameMetadatafrom frame_metadata::RTCEncodedFrameMetadataW3C webrtc-encoded-transform 4.1 RTCEncodedFrameMetadata, the members audio and video frames share.
  • useRTCEncodedFrameMetadataKindfrom frame_metadata::RTCEncodedFrameMetadataKindThe metadata of a received encoded frame.
  • useRTCEncodedVideoFrameMetadatafrom frame_metadata::RTCEncodedVideoFrameMetadataW3C webrtc-encoded-transform 4.2 RTCEncodedVideoFrameMetadata, with the frame's type (4.3).
  • useRTCEncodedVideoFrameTypefrom frame_metadata::RTCEncodedVideoFrameTypeW3C webrtc-encoded-transform 4.3 type of an RTCEncodedVideoFrame (EncodedVideoChunkType, with the frame without data of RTCEncodedVideoFrameType).

rtci::rtp_transceiver::rtp_receiver::frame_metadata

Per-frame metadata of received encoded frames (W3C webrtc-encoded-transform section 4: RTCEncodedFrameMetadata, RTCEncodedVideoFrameMetadata, RTCEncodedAudioFrameMetadata, and the frame's type).

rtci::rtp_transceiver::rtp_sender

RTP sender module providing WebRTC RTPSender functionality.

  • moddtmfRTCDTMFSender (W3C webrtc-pc section 7; RFC 4733): the tones an application inserts are queued here and played out as telephone-event packets in the audio sender's RTP stream.
  • structRTCPFeedbackfrom rtcp_parameters::RTCPFeedbackRTCP feedback parameters for specifying additional packet types.
  • structRTCResolutionRestrictionfrom rtp_encoding_parameters::RTCResolutionRestrictionwebrtc-extensions 5.1 RTCResolutionRestriction: the largest dimensions of a frame, orientation agnostic (1280x720 and 720x1280 restrict alike).
  • structRTCRtcpParametersfrom rtcp_parameters::RTCRtcpParametersRTCP parameters for RTP streams.
  • structRTCRtpCapabilitiesfrom rtp_capabilities::RTCRtpCapabilitiesRTP capabilities representing available codecs and header extensions.
  • structRTCRtpCodecfrom rtp_codec::RTCRtpCodecRTP codec capability providing information about supported codecs.
  • structRTCRtpCodecParametersfrom rtp_codec_parameters::RTCRtpCodecParametersRTP codec parameters including negotiated payload type.
  • structRTCRtpCodingParametersfrom rtp_coding_parameters::RTCRtpCodingParametersRTP coding parameters providing information for encoding and decoding.
  • structRTCRtpEncodingParametersfrom rtp_encoding_parameters::RTCRtpEncodingParametersRTP encoding parameters for individual encodings in a simulcast or layered stream.
  • structRTCRtpFecParametersfrom rtp_coding_parameters::RTCRtpFecParametersFEC parameters for forward error correction streams.
  • structRTCRtpHeaderExtensionCapabilityfrom rtp_header_extension_capability::RTCRtpHeaderExtensionCapabilityRTP header extension capability.
  • structRTCRtpHeaderExtensionParametersfrom rtp_header_extension_parameters::RTCRtpHeaderExtensionParametersNegotiated RTP header extension parameters.
  • structRTCRtpHeaderExtensionToNegotiatefrom rtp_header_extension_capability::RTCRtpHeaderExtensionToNegotiateAn RTP header extension with the direction this transceiver negotiates it in (webrtc-extensions 4.1: RTCRtpHeaderExtensionCapability with its direction member; the items of [HeaderExtensionsToNegotiate] and [NegotiatedHeaderExtensions]).
  • structRTCRtpParametersfrom rtp_parameters::RTCRtpParametersRTP parameters containing negotiated codecs and header extensions.
  • structRTCRtpReceiveParametersfrom rtp_receiver_parameters::RTCRtpReceiveParametersRTP receive parameters for configuring receivers.
  • structRTCRtpRidRestrictionsfrom rtp_coding_parameters::RTCRtpRidRestrictionsThe restrictions an a=rid line places on an RTP stream (RFC 8851 section 5). None, or an empty list, is "not restricted".
  • structRTCRtpRtxParametersfrom rtp_coding_parameters::RTCRtpRtxParametersRTX parameters for retransmission streams.
  • structRTCRtpSenderRTCRtpSender controls the encoding and transmission of media tracks to remote peers.
  • structRTCRtpSendParametersfrom rtp_send_parameters::RTCRtpSendParametersRTP send parameters for configuring senders.
  • structRTCSetParameterOptionsfrom set_parameter_options::RTCSetParameterOptionsOptions for set_parameters() operation.
  • enumRTCRtpHeaderExtensionEncryptionfrom rtp_header_extension_capability::RTCRtpHeaderExtensionEncryptionHow offers signal a header extension with respect to header extension encryption (RFC 6904); see MediaEngine::set_header_extension_encryption.
  • enumRtpCodecKindfrom rtp_codec::RtpCodecKindCodec kind identifying the media type.
  • constMAX_SEND_ENCODINGSThe most encodings a sender has (W3C webrtc 5.1 addTransceiver: "the maximum number of total simultaneous encodings the user agent may support"): sendEncodings past this many are dropped from the end.
  • constRTCP_FB_ACK_CCFBfrom rtcp_parameters::RTCP_FB_ACK_CCFBThe ack parameter of RFC 8888 congestion control feedback: a=rtcp-fb:<pt> ack ccfb.
  • constTYPE_RTCP_FB_ACKfrom rtcp_parameters::TYPE_RTCP_FB_ACKAcknowledgment feedback type
  • constTYPE_RTCP_FB_CCMfrom rtcp_parameters::TYPE_RTCP_FB_CCMCodec Control Message feedback type
  • constTYPE_RTCP_FB_GOOG_REMBfrom rtcp_parameters::TYPE_RTCP_FB_GOOG_REMBGoogle REMB (Receiver Estimated Maximum Bitrate) feedback type
  • constTYPE_RTCP_FB_NACKfrom rtcp_parameters::TYPE_RTCP_FB_NACKNegative Acknowledgment feedback type
  • constTYPE_RTCP_FB_TRANSPORT_CCfrom rtcp_parameters::TYPE_RTCP_FB_TRANSPORT_CCTransport-wide congestion control feedback type

rtci::rtp_transceiver::rtp_sender::dtmf

RTCDTMFSender (W3C webrtc-pc section 7; RFC 4733): the tones an application inserts are queued here and played out as telephone-event packets in the audio sender's RTP stream.

  • structRTCDTMFSenderW3C RTCDTMFSender: the DTMF sender of an audio RTCRtpSender, from RTCRtpSender::dtmf.
  • structRTCDTMFToneChangeEventW3C RTCDTMFToneChangeEvent: a tone began, or the tone buffer ran out (tone empty).
  • constDTMF_COMMA_DELAYThe pause a , in the tone buffer stands for (W3C: 2 seconds).
  • constDTMF_DEFAULT_DURATIONThe default duration of insert_dtmf (W3C: 100 ms).
  • constDTMF_DEFAULT_INTER_TONE_GAPThe default interToneGap of insert_dtmf (W3C: 70 ms).
  • constDTMF_MAX_DURATIONThe longest tone, and the longest gap (W3C: 6000 ms).
  • constDTMF_MIN_DURATIONThe shortest tone (W3C: a shorter duration is played for 40 ms).
  • constDTMF_MIN_INTER_TONE_GAPThe shortest gap between tones (W3C: 30 ms).
  • constDTMF_UPDATE_INTERVALHow often an event in progress is reported, and how far apart the three final packets go (RFC 4733 section 2.5.1.2: the update interval, 50 ms when there is no audio packetization interval to follow).
  • constMIME_TYPE_TELEPHONE_EVENTThe MIME type of the telephone-event codec (RFC 4733 section 7.1.1).

rtci::rtp_transceiver::sframe_transform

W3C webrtc-encoded-transform section 3, the SFrame transforms: RTCRtpSFrameEncryptor and RTCRtpSFrameDecryptor (and, being the same objects without an owner, SFrameEncryptorStream and SFrameDecryptorStream), over rtci::sframe.

  • structRTCRtpSFrameDecryptorRTCRtpSFrameDecryptor (and SFrameDecryptorStream): decrypts a receiver's SFrame ciphertexts with the keys addDecryptionKey added.
  • structRTCRtpSFrameEncryptorRTCRtpSFrameEncryptor (and SFrameEncryptorStream): SFrame-encrypts the frames of a sender with the cipher suite of its options and the key setEncryptionKey set.
  • structRTCSFrameLayerOne spatial layer of an access unit as its own SFrame ciphertext (RFC 9605 section 6.1.3), from RTCRtpSFrameEncryptor::transform_access_unit. Each is sent as its own SFrame RTP frame, with the Dependency Descriptor of its layer frame.
  • structRTCSFrameTransformErrorSFrameTransformErrorEvent: why a frame could not be decrypted, with the key id when the header named one. The frame is the one the application passed in.
  • enumRTCSFrameTransformErrorTypeSFrameTransformErrorEventType.
  • enumRTCSFrameTypeSFrameType: how a sender's SFrame ciphertext is carried (draft-ietf-avtcore-rtp-sframe: one SFrame per media frame, or one per RTP packet).
  • fnjoin_layer_framesThe decrypted layers of one picture (one RTP timestamp), lowest first, as the access unit the decoder of mime_type takes: for VP9 a superframe (Annex B; one layer is the frame itself), for AV1 the layers' OBUs one after the other. A receiver whose forwarder dropped the upper layers passes the layers it has. For other codecs, one layer only.

rtci::statistics

Statistics module for WebRTC.

  • modreportWebRTC Statistics Report types.
  • modstatsWebRTC Statistics API types.
  • structFecReceivedStatsfrom fec::FecReceivedStatsThe FEC an inbound stream received and what became of it.
  • structFecSentStatsfrom fec::FecSentStatsThe FEC an outbound stream sent: the encoder's FEC payloads that left the interceptor chain (the pacer and the circuit breaker let them through), in RED packets of the stream, on a FEC SSRC, in a FEC session of its own (RFC 5109 section 14.1) or as FlexFEC repair packets.
  • structFecStatsfrom fec::FecStatsFEC of the streams of a peer connection (RTCPeerConnection::fec_stats). A stream appears once it sent or received FEC, or had a packet rebuilt by FEC.
  • enumStatsSelectorSelector for filtering statistics in get_stats().
  • useAudioPlayoutStatsUpdatefrom accumulator::AudioPlayoutStatsUpdate
  • useAudioReceiverStatsUpdatefrom accumulator::AudioReceiverStatsUpdate
  • useAudioSourceStatsUpdatefrom accumulator::AudioSourceStatsUpdate
  • useDecoderStatsUpdatefrom accumulator::DecoderStatsUpdate
  • useEncoderStatsUpdatefrom accumulator::EncoderStatsUpdate
  • usePsnrSumfrom accumulator::PsnrSum
  • useQualityLimitationDurationsfrom accumulator::QualityLimitationDurations
  • useVideoSourceStatsUpdatefrom accumulator::VideoSourceStatsUpdate

rtci::statistics::report

WebRTC Statistics Report types.

  • structRTCStatsReportA collection of statistics objects returned by getStats().
  • enumRTCStatsReportEntryAn entry in the stats report representing a single statistics object.

rtci::statistics::stats

WebRTC Statistics API types.

rtci::statistics::stats::certificate

Certificate statistics.

rtci::statistics::stats::codec

Codec statistics.

rtci::statistics::stats::data_channel

Data channel statistics.

rtci::statistics::stats::ice_candidate

ICE candidate statistics.

rtci::statistics::stats::ice_candidate_pair

ICE candidate pair statistics.

rtci::statistics::stats::media

Media statistics types.

rtci::statistics::stats::media::audio_playout

Audio playout statistics.

rtci::statistics::stats::media::audio_source

Audio source statistics.

rtci::statistics::stats::media::media_source

Media source statistics.

rtci::statistics::stats::media::video_source

Video source statistics.

rtci::statistics::stats::peer_connection

Peer connection statistics.

rtci::statistics::stats::rtp_stream

RTP stream statistics.

rtci::statistics::stats::rtp_stream::received

Received RTP stream statistics.

rtci::statistics::stats::rtp_stream::received::inbound

Inbound RTP stream statistics.

rtci::statistics::stats::rtp_stream::received::remote_inbound

Remote inbound RTP stream statistics.

rtci::statistics::stats::rtp_stream::sent

Sent RTP stream statistics.

rtci::statistics::stats::rtp_stream::sent::outbound

Outbound RTP stream statistics.

rtci::statistics::stats::rtp_stream::sent::remote_outbound

Remote outbound RTP stream statistics.

rtci::statistics::stats::transport

Transport statistics.

Generated from the sources of rtci 0.5.0 at its release tag. Items made by macros and methods are on docs.rs.