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.
cargo add [email protected] · crates.io · docs.rs · README on GitHub· MSRV 1.89
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.
- mod
data_channelPeer-to-peer Data API - mod
media_streamMediaStream API - mod
peer_connectionPeer-to-peer connections - mod
rtp_transceiverRTP Media API - mod
statisticsStatistics module for WebRTC. - use
crypto - use
datachannel - use
dtls - use
ice - use
interceptor - use
mdns - use
media - use
rtcp - use
rtp - use
sansio - use
sctp - use
sdp - use
sframe - use
srtp - use
stun - use
turn
rtci::data_channel
Peer-to-peer Data API
- struct
RTCClosedDataChannelfromclosed::RTCClosedDataChannelThe final attributes of a closed data channel, read withRTCPeerConnection::closed_data_channel. - struct
RTCDataChannelRepresents a WebRTC data channel for bidirectional peer-to-peer data transfer. - struct
RTCDataChannelInitfrominit::RTCDataChannelInitDictionary for configuring properties of an RTCDataChannel. - struct
RTCDataChannelMessagefrommessage::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. - enum
RTCDataChannelStatefromstate::RTCDataChannelStateDataChannelState indicates the state of a data channel. - type
RTCDataChannelIdHandle identifying a data channel within a particular peer connection. - const
MAX_KEPT_CLOSED_DATA_CHANNELSfromclosed::MAX_KEPT_CLOSED_DATA_CHANNELSHow many closed data channels a peer connection keeps the final attributes of. - use
StreamIdfromsctp::StreamId
rtci::media_stream
MediaStream API
- struct
ConstrainRangefromtrack_constraints::ConstrainRangeRepresents a range of numeric values with constraints. - struct
MediaStreamRepresents a stream of media content. - struct
MediaStreamTrackfromtrack::MediaStreamTrackRepresents a single media track within a media stream. - struct
MediaStreamTrackEventmediacapture-main 4.4MediaStreamTrackEvent: a track added to or removed from a stream, for that stream'saddtrackorremovetrackevent. A remote stream's are derived fromRTCRemoteStreamsChange(media_stream_track_events). - struct
MediaTrackCapabilitiesfromtrack_capabilities::MediaTrackCapabilitiesDescribes the capabilities of a media stream track. - struct
MediaTrackConstraintsfromtrack_constraints::MediaTrackConstraintsConstraints to apply to a media track. - struct
MediaTrackConstraintSetfromtrack_constraints::MediaTrackConstraintSetA set of constraints for a media track. - struct
MediaTrackSettingsfromtrack_settings::MediaTrackSettingsRepresents the actual settings of a media track. - struct
MediaTrackSupportConstraintsfromtrack_supported_constraints::MediaTrackSupportConstraintsDescribes which constraints are supported by the user agent. - enum
Constrainfromtrack_constraints::ConstrainRepresents a constraint that can be either a single value or a range. - enum
MediaStreamTrackEventKindThe type of aMediaStreamTrackEvent. - enum
MediaStreamTrackStatefromtrack_state::MediaStreamTrackStateRepresents the lifecycle state of a media stream track. - fn
generate_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. - type
MediaStreamIdUnique identifier for a media stream. - type
MediaStreamTrackIdfromtrack::MediaStreamTrackIdUnique identifier for a media stream track.
rtci::peer_connection
Peer-to-peer connections
- mod
certificateX.509 certificate management for WebRTC DTLS authentication. - mod
configurationWebRTC peer connection configuration module. - mod
cryptexCryptex ([RFC 9335]) signalling:rtpHeaderEncryptionPolicy(webrtc-extensions), thea=cryptexattribute in offers and answers, and the SRTP contexts' use of it once both sides have signalled it. - mod
eventWebRTC peer connection event types. - mod
identityThe peer's identity (RFC 8827 sections 5.1.4 and 7.4). - mod
messageWebRTC message types for media and data transport. - mod
priorityWebRTC Priority Control (W3C webrtc-priority) and the DSCP values of RFC 8837: theRTCPriorityTypeof encodings and data channels, and the Differentiated Services codepoint each outgoing datagram is to be marked with. - mod
rtc_errorRTCErrorandRTCErrorDetailType(W3C webrtc-pc section 11): the WebRTC-specific detail an API layer attaches to anOperationError, and that error events carry. - mod
sdpSession Description Protocol (SDP) types and utilities. - mod
srflxServer-reflexive candidates gathered by the engine (RFC 8445 section 5.1.1.2): a STUN Binding request to eachstun:/stuns:server of the configuration, from each host candidate's base, on each transport (RFC 9429 section 5.2.1). - mod
stateWebRTC connection state types. - mod
transportWebRTC transport layer types for ICE, DTLS, and SCTP. - mod
turn_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. - mod
turn_streamsThe TURN clients the engine runs itself (RFC 8656, RFC 7350, RFC 6062): who gathers fromturn:servers over UDP,turn_streams::RelayGathering. - mod
turn_tlsTLS for TURN over TLS (turns:, RFC 8656 section 3.1, RFC 7350 for the URI), as aStreamLayeraround rustls used sans-I/O:rustls::ClientConnectionreads and writes byte buffers, never a socket. - struct
RTCPeerConnectionTheRTCPeerConnectioninterface 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. - struct
RTCPeerConnectionBuilderBuilder for creating RTCPeerConnection instances.
rtci::peer_connection::certificate
X.509 certificate management for WebRTC DTLS authentication.
- struct
RTCCertificateX.509 certificate used to authenticate WebRTC peer-to-peer communications. - struct
RTCCertificateKeyHandleA handle to anRTCCertificate'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. - struct
RTCSerializedCertificateThe serialized form of anRTCCertificate(W3C webrtc-pc 4.9.2): what the serialization steps keep, a handle to the key instead of the key. - const
DEFAULT_CERTIFICATE_LIFETIMEThe lifetime of a certificateRTCCertificate::generate_certificatemakes 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). - const
MAX_CERTIFICATE_LIFETIMEThe longest lifetime a generated certificate gets (W3C webrtc-pc section 4.9: "the user agent MUST cap the value at 365 days"). - use
CertificateParamsfromrcgen::CertificateParams
rtci::peer_connection::configuration
WebRTC peer connection configuration module.
- mod
behaviour_profileBehaviour profiles: one switch for every default where the engine and an RFC, or the engine and libwebrtc (Chrome), choose differently. - mod
interceptor_registryInterceptor Registry - Configuration helpers for RTP/RTCP interceptor chains. - mod
media_engineMedia engine configuration for codecs and RTP extensions. - mod
remote_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. - mod
setting_engineAdvanced configuration engine for WebRTC peer connections. - struct
RTCAnswerOptionsfromoffer_answer_options::RTCAnswerOptionsOptions for creating SDP answers. - struct
RTCConfigurationA 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. - struct
RTCConfigurationBuilderBuilder for creating RTCConfiguration instances. - struct
RTCIceServerfromcrate::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. - struct
RTCOfferOptionsfromoffer_answer_options::RTCOfferOptionsOptions for creating SDP offers. - enum
RTCBundlePolicyfrombundle_policy::RTCBundlePolicyMedia bundling policy for ICE candidate gathering and transport usage. - enum
RTCIceTransportPolicyfromice_transport_policy::RTCIceTransportPolicyICE transport policy controlling which candidate types are used for connectivity. - enum
RTCRtcpMuxPolicyfromrtcp_mux_policy::RTCRtcpMuxPolicyRTCP multiplexing policy controlling ICE candidate gathering for RTCP. - enum
RTCSdpSemanticsfromsdp_semantics::RTCSdpSemanticsSDP semantics determining the style of SDP offers and answers. - type
ICEGatherPolicyfromice_transport_policy::ICEGatherPolicyORTC-compatible alias for ICETransportPolicy. - const
MAX_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"). - use
BehaviourProfilefrombehaviour_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.
- enum
BehaviourProfileWhich 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.
- struct
DefaultInterceptorHandlesWhat an application holds on to from the standard interceptor set. - struct
DefaultInterceptorOptionsThe 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. - struct
TransportHandlesThe 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. - enum
CongestionFeedbackWhich congestion control feedback is offered, and so which the remote may report arrivals with. - fn
configure_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 andack 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 … - fn
configure_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 … - fn
configure_audio_redundancy_withconfigure_audio_redundancy, withaudio_redundancydeciding when a local stream is sent in RED. The peer connection installs it, withSettingEngineBuilder::with_audio_redundancy, in any chain that does not fill the slot. - fn
configure_audio_redundancy_with_builderconfigure_audio_redundancywith the RED interceptorbuildermakes: 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 fromSettingEngineBuilder::with_audio_redundancy,with_audio_redundancy_depthandwith_audio_redundancy_on_loss. - fn
configure_circuit_breakerInstalls the RTP circuit breaker (RFC 8083) atSlot::CircuitBreakerwith the RFC's recommended parameters, and returns the handle that reports what it stopped. - fn
configure_congestion_controlConfigure send-side congestion control aroundestimator. - fn
configure_congestion_control_feedbackNegotiates RFC 8888 congestion control feedback and reports arrivals with it, without a congestion controller. - fn
configure_default_header_extensionsRegisters the header extensions every WebRTC endpoint is expected to offer, beside the ones the interceptors above need: - fn
configure_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 witha=rtcp-xr(section 5.1). A stream that did not gets none. Part ofregister_default_interceptors. - fn
configure_key_frame_requestsDelivers inbound key-frame requests (RTCP PLI and FIR) to the application. - fn
configure_nackConfigures NACK (Negative Acknowledgement) interceptors for packet loss recovery. - fn
configure_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, withoutnowait). 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. - fn
configure_pause_resume_withconfigure_pause_resumewith the interceptor's parameters and, withnowait, thenowaitattribute 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"). - fn
configure_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 (orntp-56): every packet of the stream's first five seconds, then a frame a second … - fn
configure_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). - fn
configure_rembThe receive-side variant of congestion control (draft-ietf-rmcat-gcc-02 section 3): a REMB for every remote stream that negotiatedgoog-remband 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 … - fn
configure_rtcp_reportsConfigures RTCP: the RTCP session of the connection. - fn
configure_rtcp_reports_withconfigure_rtcp_reportswith the RTCP session built fromsession, for the settings a session description does not carry. - fn
configure_simulcast_extension_headersRegisters RTP header extensions required for simulcast streaming. - fn
configure_tmmbrOffers TMMBR for audio and video:a=rtcp-fb:<pt> ccm tmmbr(RFC 5104 section 7.1). - fn
configure_tradeoff_notificationsAdds the temporal-spatial trade-off notifications (RFC 5104 section 4.3.3): a local media sender whose stream negotiatedccm tstranswers 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 ofregister_default_interceptors. - fn
configure_twccConfigures full TWCC (Transport-Wide Congestion Control) for bandwidth estimation. - fn
configure_twcc_receiver_onlyConfigures TWCC receiver only (generates feedback for the remote sender). - fn
configure_twcc_sender_onlyConfigures TWCC sender only (the remote peer generates feedback). - fn
configure_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. - fn
configure_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 atSlot::FecEncoderwith its wire tap atSlot::FecWireImage, so the FEC protects each media packet as it leaves, and the decoder atSlot::FecDecoder, which keeps a decoder for every video stream so … - fn
configure_ulpfec_sessions_withconfigure_ulpfec_sessions, the encoder withlatency_budget(RFC 8854 section 8: while the round trip measured to the receiver is within it, a stream that has RTX gets no FEC;Nonesends FEC by the loss whatever the round trip;UlpfecSendBuilder::with_latency_budget). - fn
configure_ulpfec_with_placementconfigure_ulpfecwith the placement of FEC data in the RED stream chosen:RedPlacement::WithNextMedia, the form of RFC 5109 section 14.2 and the default, orRedPlacement::OwnPacket, the form libwebrtc sends and the only one it reads. - fn
configure_video_flexfecRFC 8627 FlexFEC for video, in both directions (DefaultInterceptorOptions::video_flexfec, on in theStrictRfcprofile; RFC 8854 sections 5.1 and 5.2): - fn
configure_video_red_ulpfecVideoredandulpfecas Chromium offers them, and ULPFEC in RED in both directions (theChromebehaviour profile'sDefaultInterceptorOptions::video_red_ulpfec): - fn
configure_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 whenzero_mutable_extensions(libwebrtc's form:UlpfecSendBuilder::with_mutable_extensions_zeroed,UlpfecReceiveBuilder::with_mutable_extensions_zeroed;DefaultInterceptorOptions::ulpfec_zero_mutable_extensions). - fn
register_default_interceptorsRegisters a standard set of interceptors for typical WebRTC usage. - fn
register_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. - fn
register_default_interceptors_with_optionsregister_default_interceptors_with_handleswith settings other than the defaults. - fn
register_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 inregister_default_interceptors. - const
FLEXFEC_DECODER_SLOTWhere the RFC 8627 decoder sits:Slot::Custom(10_310), besideSlot::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. - const
FLEXFEC_ENCODER_SLOTWhereconfigure_video_flexfecputs the RFC 8627 encoder:Slot::Custom(5_100), besideSlot::FecEncoder(5_000), which ULPFEC may hold. Both are above the NACK responder and the pacer, so repair packets are paced and recorded. - const
FLEXFEC_WIRE_IMAGE_SLOTWhere the RFC 8627 encoder's wire tap sits:Slot::Custom(1_510), besideSlot::FecWireImage(1_500), below the TWCC sender, so FlexFEC protects each source packet as it leaves (RFC 8627 section 4.1). - const
VIDEO_FLEXFEC_PAYLOAD_TYPEThe payload typeconfigure_video_flexfecregistersvideo/flexfecunder. - const
VIDEO_RED_PAYLOAD_TYPEThe payload typeconfigure_video_red_ulpfecregistersvideo/redunder. - const
VIDEO_RED_RTX_PAYLOAD_TYPEThe payload type of the RTX format forvideo/red(apt=116). - const
VIDEO_ULPFEC_PAYLOAD_TYPEThe payload typeconfigure_video_red_ulpfecregistersvideo/ulpfecunder. - use
Registryfrominterceptor::Registry - use
Slotfrominterceptor::Slot
rtci::peer_connection::configuration::media_engine
Media engine configuration for codecs and RTP extensions.
- struct
MediaEngineMedia engine managing codecs and RTP capabilities for peer connections. - struct
RTCPacketTimeThe packet times of a media section, in milliseconds:a=ptime, the length of media one packet should carry, anda=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 itsptimeandmaxptimeparameters (RFC 7587 section 7). - const
MIME_TYPE_AV1AV1 video codec MIME type. - const
MIME_TYPE_CNComfort noise MIME type (RFC 3389). - const
MIME_TYPE_FLEX_FECFlexFEC forward error correction MIME type, as published: RFC 8627. - const
MIME_TYPE_FLEX_FEC03FlexFEC-03 forward error correction MIME type: draft-ietf-payload-flexible-fec-scheme-03, the FlexFEC browsers send. Its coder isinterceptor::FlexFec03SendBuilder/interceptor::FlexFec03ReceiveBuilder(opt-in). - const
MIME_TYPE_G722G.722 audio codec MIME type. - const
MIME_TYPE_H264H.264 video codec MIME type. - const
MIME_TYPE_HEVCH.265/HEVC video codec MIME type. - const
MIME_TYPE_OPUSOpus audio codec MIME type. - const
MIME_TYPE_PCMAPCMA (G.711 A-law) audio codec MIME type. - const
MIME_TYPE_PCMUPCMU (G.711 μ-law) audio codec MIME type. - const
MIME_TYPE_REDMIME type for redundant audio data, RED (RFC 2198), asa=rtpmap:<pt> red/48000/2. - const
MIME_TYPE_RTXRTX (Retransmission) MIME type. - const
MIME_TYPE_SMPTE336MSMPTE ST 336 (KLV) metadata MIME type - const
MIME_TYPE_TELEPHONE_EVENTTelephone-event MIME type for DTMF tones. - const
MIME_TYPE_ULP_FECULP FEC (Uneven Level Protection Forward Error Correction) MIME type. - const
MIME_TYPE_VP8VP8 video codec MIME type. - const
MIME_TYPE_VP9VP9 video codec MIME type. - const
VP9_RECEIVER_LIMITSThe receiver capabilities the default VP9 formats state withMediaEngine::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.
- struct
RemoteBitrateLimitThe 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 anAttribute::Customon an empty RTCP packet (RemoteBitrateLimit::into_packet);RemoteBitrateLimitInterceptortakes it. - struct
RemoteBitrateLimitInterceptorBounds the congestion controller's estimate (Attribute::TargetBitrateChanged) by what the remote description allows this endpoint to send. - const
REMOTE_BITRATE_LIMIT_SLOTWhereRemoteBitrateLimitInterceptorgoes 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.
- struct
CandidatesICE candidate gathering and filtering configuration. - struct
DataChannelData-channel configuration for in-band channels. - struct
IceBehaviourWhere 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. - struct
MulticastDNSMulticastDNS configuration for mDNS. - struct
ReplayProtectionReplay attack protection window sizes. - struct
SettingEngineAdvanced configuration engine for fine-tuning WebRTC behavior. - struct
SettingEngineBuilderFluent registry forSettingEngine. - struct
TimeoutICE timeout configuration for connection health monitoring. - enum
AnswerIceOptionsWhat an answer'sa=ice-optionsline says of thetrickleandice2options (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.mdrow 28). Offers always saytrickle ice2(RFC 9429 sections 5.2.1 and 5.2.2); other options of the offer are never echoed. - enum
DtlsFlightIntervalHow 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). - enum
SctpMaxMessageSizeMaximum 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.
- enum
RTCRtpHeaderEncryptionPolicyRTCRtpHeaderEncryptionPolicy(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.
- struct
RTCKeyFrameRequestEventfromkey_frame_request_event::RTCKeyFrameRequestEventA key-frame request for one encoding of a sender, with where it came from: the payload ofRTCPeerConnectionEvent::OnKeyFrameRequestOrigin. - struct
RTCLocalCandidatesNeededEventfromtransport_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). - struct
RTCPeerConnectionIceErrorEventfromice_error_event::RTCPeerConnectionIceErrorEventICE candidate gathering error event. - struct
RTCPeerConnectionIceEventfromice_event::RTCPeerConnectionIceEventICE candidate event (W3CRTCPeerConnectionIceEvent). - struct
RTCRemoteStreamsChangefromtrack_event::RTCRemoteStreamsChangeW3C "set the associated remote streams": the remote streams a receiver's track was removed from and added to by a description (mediacapture-mainremovetrackandaddtrackon those streams). - struct
RTCRemoteTrackEventInitfromtrack_event::RTCRemoteTrackEventInitThe W3Ctrackevent (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). - struct
RTCTrackEventInitfromtrack_event::RTCTrackEventInitInitialization data for a track event. - struct
RTCTransportEventfromtransport_event::RTCTransportEventAn event fired at one transport of the connection. - struct
TaggedRTCEventAnRTCEventtogether with the instant its condition was observed at. - enum
RTCDataChannelEventfromdata_channel_event::RTCDataChannelEventEvents that can be emitted by an RTCDataChannel. - enum
RTCEventReserved for future use. - enum
RTCKeyFrameRequestOriginfromkey_frame_request_event::RTCKeyFrameRequestOriginWho asked for a key frame: the remote peer (and with which message), or this endpoint's own interceptor chain. - enum
RTCLocalCandidatesNeededReasonfromtransport_event::RTCLocalCandidatesNeededReasonWhy a transport needs a new set of local candidates (RTCLocalCandidatesNeededEvent::reason). - enum
RTCPeerConnectionEventEvents that can be emitted by anRTCPeerConnection. - enum
RTCTrackEventfromtrack_event::RTCTrackEventEvents related to incoming media tracks. - enum
RTCTransportEventKindfromtransport_event::RTCTransportEventKindWhat happened to a transport; each kind is one of the events the single-transport variants ofRTCPeerConnectionEventreport for the default transport. - const
ICE_SERVER_UNREACHABLEfromcrate::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).
- struct
RTCPeerIdentityWhat 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.
- enum
RTCDscpMarkingHow a connection marks its datagrams (SettingEngineBuilder::with_dscp_marking). - enum
RTCFlowTypeThe flow types of RFC 8837 Table 1. - enum
RTCPriorityTypeW3C webrtc-priorityRTCPriorityType: the relative priority of a flow. - fn
allocate_bandwidthDividestotalbits per second among flows by their weights (bandwidth_weight), none above its cap (an encoding'smaxBitrate): 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 oftotalis left unallocated. - fn
bandwidth_weightThe share of a flow atpriorityagainst 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. - fn
dscp_forRFC 8837 Table 1: the DSCP of a flow offlowtype atpriority. Where the table gives two codepoints (video at medium and high priority), the first: the lower drop precedence. - const
DATA_CHANNEL_DEMAND_HEADROOMWhat the data channels may take of the target beyond what they sent in the lastDATA_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). - const
DATA_CHANNEL_RATE_WINDOWHow long the data channels' send rate is measured over (RFC 8836 section 2, requirement 6a;DataChannelCoupling). - const
DSCP_BLOCKED_AFTERHow long a marked media flow is sent before the DSCP fallback may judge it blocked. - const
DSCP_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). - const
DSCP_DFDefault Forwarding: DSCP 0. - const
DSCP_EFExpedited Forwarding: DSCP 46. - const
DSCP_LELower Effort (RFC 8622): DSCP 1. RFC 8837 section 5: used for very-low priority, not CS1. - const
MIN_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'smaxBitratewhen 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.
- struct
RTCErrorW3CRTCError: anOperationErrorwith WebRTC detail (webrtc-pc section 11.1). - enum
RTCErrorDetailTypeW3CRTCErrorDetailType: which WebRTC failure anRTCErrorreports.
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).
- enum
ReflexiveGatheringWho gathers server-reflexive candidates. SeeSettingEngineBuilder::with_server_reflexive_gathering. - const
ALPN_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.
- fn
anycast_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 ofturn:. - fn
domain_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 asip:/sips:/xmpp:scheme or any parameter.Nonewhen there is none. - fn
urls_for_domainThe port-less TURN URLs ofdomain(RFC 8155 section 4.2 with RFC 5928): the engine finds each server by S-NAPTR (RELAYwith the transport's tag) and SRV. TLS and DTLS first. - const
MDNS_SERVICESThe DNS-SD service names of TURN servers on the local link (RFC 8155 section 5.1). - const
TURN_ANYCAST_IPV4The IPv4 TURN anycast address (RFC 8155 section 8, 192.0.0.10/32). - const
TURN_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.
- enum
RelayGatheringWho gathers relayed candidates fromturn:servers over UDP. SeeSettingEngineBuilder::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.
- struct
TurnTlsConfigHow the engine's TURN-over-TLS connections verify the server (SettingEngineBuilder::with_turn_tls). - const
ALPN_STUN_TURNThe ALPN protocol id of TURN (RFC 7443 section 3).
rtci::peer_connection::message
WebRTC message types for media and data transport.
- struct
TaggedRTCMessageAnRTCMessagetogether with the instant it belongs to. - enum
RTCMessageMessages that can be sent or received through a peer connection.
rtci::peer_connection::sdp
Session Description Protocol (SDP) types and utilities.
- struct
RTCSessionDescriptionfromsession_description::RTCSessionDescriptionRepresents a session description in the SDP offer/answer model. - struct
RTCVideoResolutionRangefromimageattr::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. - enum
RTCSdpTypefromsdp_type::RTCSdpTypeDescribes the type of a session description in the SDP offer/answer model. - const
RTCP_FB_XRThe stream feedback type of ana=rtcp-xrformat other thanrcvr-rtt(RFC 3611 section 5.1); its parameter is thexr-formatin full.
rtci::peer_connection::state
WebRTC connection state types.
- enum
RTCIceConnectionStatefromice_connection_state::RTCIceConnectionStateIndicates the state of the ICE connection. - enum
RTCIceGatheringStatefromice_gathering_state::RTCIceGatheringStateDescribes the state of the ICE candidate gathering process. - enum
RTCPeerConnectionStatefrompeer_connection_state::RTCPeerConnectionStateIndicates the overall state of the peer connection. - enum
RTCSignalingStatefromsignaling_state::RTCSignalingStateIndicates the state of the SDP offer/answer negotiation process.
rtci::peer_connection::transport
WebRTC transport layer types for ICE, DTLS, and SCTP.
- struct
RTCDtlsFingerprintfromdtls::fingerprint::RTCDtlsFingerprintDTLS certificate fingerprint for authentication. - struct
RTCDtlsParametersfromdtls::parameters::RTCDtlsParametersRTCDtlsParameters holds information relating to DTLS configuration. - struct
RTCDtlsTransportProvides access to information about the DTLS transport over which RTP, RTCP and SCTP are sent and received. - struct
RTCIceCandidatefromice::candidate::RTCIceCandidateICECandidate represents a ice candidate - struct
RTCIceCandidateInitfromice::candidate::RTCIceCandidateInitICECandidateInit is used to serialize ice candidates - struct
RTCIceCandidatePairfromice::candidate_pair::RTCIceCandidatePairICECandidatePair represents an ICE Candidate pair - struct
RTCIceParametersfromice::parameters::RTCIceParametersICEParameters includes the ICE username fragment and password and other ICE-related parameters. - struct
RTCIceServerfromice::server::RTCIceServerICEServer describes a single STUN and TURN server that can be used by the ICEAgent to establish a connection with a peer. - struct
RTCIceTransportProvides access to information about the ICE transport over which packets are sent and received. - struct
RTCSctpTransportProvides access to information about the SCTP transport that carries data channels. - struct
RTCTransportIdIdentifies one of a peer connection's transports. - enum
RTCDtlsRolefromdtls::role::RTCDtlsRoleIndicates the role of the DTLS transport in the handshake. - enum
RTCDtlsTransportStatefromdtls::state::RTCDtlsTransportStateIndicates the state of the DTLS transport. - enum
RTCIceCandidateTypefromice::candidate_type::RTCIceCandidateTypeIndicates the type of ICE candidate. - enum
RTCIceComponentfromice::component::RTCIceComponentICEComponent describes if the ice transport is used for RTP (or RTCP multiplexing). - enum
RTCIceProtocolfromice::protocol::RTCIceProtocolICEProtocol indicates the transport protocol type that is used in the ice.URL structure. - enum
RTCIceRolefromice::role::RTCIceRoleICERole describes the role ice.Agent is playing in selecting the preferred the candidate pair. - enum
RTCIceServerTransportProtocolfromice::candidate::RTCIceServerTransportProtocolThe protocol used to reach the STUN/TURN server that produced a candidate. - enum
RTCIceTcpCandidateTypefromice::candidate::RTCIceTcpCandidateTypeThe role an ICE-TCP candidate takes when a pair is checked (RFC 6544 §4.5). - enum
RTCIceTransportStatefromice::state::RTCIceTransportStateICETransportState represents the current state of the ICE transport. - enum
RTCSctpTransportStatefromsctp::state::RTCSctpTransportStateSCTPTransportState indicates the state of the SCTP transport. - use
CandidateConfigfromice::candidate::CandidateConfig - use
CandidateHostConfigfromice::candidate::CandidateHostConfig - use
CandidatePeerReflexiveConfigfromice::candidate::CandidatePeerReflexiveConfig - use
CandidateRelayConfigfromice::candidate::CandidateRelayConfig - use
CandidateServerReflexiveConfigfromice::candidate::CandidateServerReflexiveConfig
rtci::rtp_transceiver
RTP Media API
- mod
rtp_receiverRTP Receiver implementation following the W3C WebRTC specification. - mod
rtp_senderRTP sender module providing WebRTC RTPSender functionality. - mod
sframe_transformW3C webrtc-encoded-transform section 3, the SFrame transforms:RTCRtpSFrameEncryptorandRTCRtpSFrameDecryptor(and, being the same objects without an owner,SFrameEncryptorStreamandSFrameDecryptorStream), overrtci::sframe. - struct
RTCRemoteBandwidthWhat theb=lines of a remote media section say (RFC 9429 section 5.10), in bits per second.None: the section has no such line. - struct
RTCRtpReceiverIdIdentifier for anRTCRtpReceiverwithin a peer connection. - struct
RTCRtpSenderIdIdentifier for anRTCRtpSenderwithin a peer connection. - struct
RTCRtpTransceiverRTCRtpTransceiver 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. - struct
RTCRtpTransceiverInitInitialization parameters for creating anRTCRtpTransceiver. - enum
RTCFecGroupSemanticsThe semantics of thea=groupline that groups a media m= section with the m= section of its FEC session (RFC 5109 section 14.1,RTCPeerConnection::add_fec_session). - enum
RTCRtpTransceiverDirectionfromdirection::RTCRtpTransceiverDirectionDirection of media flow for an RTP transceiver. - type
PayloadTypeRTP payload type identifier. - type
RepairedStreamIdRepaired RTP stream identifier. - type
RTCRtpTransceiverIdInternal identifier for an RTP transceiver. - type
RtpStreamIdRTP stream identifier. - type
SSRCSSRC (Synchronization Source) identifier.
rtci::rtp_transceiver::rtp_receiver
RTP Receiver implementation following the W3C WebRTC specification.
- mod
frame_metadataPer-frame metadata of received encoded frames (W3C webrtc-encoded-transform section 4:RTCEncodedFrameMetadata,RTCEncodedVideoFrameMetadata,RTCEncodedAudioFrameMetadata, and the frame'stype). - struct
RTCRtpContributingSourcefromrtp_contributing_source::RTCRtpContributingSourceInformation about a contributing source (CSRC) or synchronization source (SSRC). - struct
RTCRtpReceiverRepresents an RTP receiver for a media stream track. - type
RTCRtpSynchronizationSourcefromrtp_contributing_source::RTCRtpSynchronizationSourceSynchronization source information. - use
RTCEncodedAudioFrameMetadatafromframe_metadata::RTCEncodedAudioFrameMetadataW3C webrtc-encoded-transform 4.4RTCEncodedAudioFrameMetadata. - use
RTCEncodedFrameMetadatafromframe_metadata::RTCEncodedFrameMetadataW3C webrtc-encoded-transform 4.1RTCEncodedFrameMetadata, the members audio and video frames share. - use
RTCEncodedFrameMetadataKindfromframe_metadata::RTCEncodedFrameMetadataKindThe metadata of a received encoded frame. - use
RTCEncodedVideoFrameMetadatafromframe_metadata::RTCEncodedVideoFrameMetadataW3C webrtc-encoded-transform 4.2RTCEncodedVideoFrameMetadata, with the frame's type (4.3). - use
RTCEncodedVideoFrameTypefromframe_metadata::RTCEncodedVideoFrameTypeW3C webrtc-encoded-transform 4.3typeof anRTCEncodedVideoFrame(EncodedVideoChunkType, with the frame without data ofRTCEncodedVideoFrameType).
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).
- struct
RTCEncodedAudioFrameMetadataW3C webrtc-encoded-transform 4.4RTCEncodedAudioFrameMetadata. - struct
RTCEncodedFrameMetadataW3C webrtc-encoded-transform 4.1RTCEncodedFrameMetadata, the members audio and video frames share. - struct
RTCEncodedVideoFrameMetadataW3C webrtc-encoded-transform 4.2RTCEncodedVideoFrameMetadata, with the frame's type (4.3). - enum
RTCEncodedFrameMetadataKindThe metadata of a received encoded frame. - enum
RTCEncodedVideoFrameTypeW3C webrtc-encoded-transform 4.3typeof anRTCEncodedVideoFrame(EncodedVideoChunkType, with the frame without data ofRTCEncodedVideoFrameType).
rtci::rtp_transceiver::rtp_sender
RTP sender module providing WebRTC RTPSender functionality.
- mod
dtmfRTCDTMFSender(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. - struct
RTCPFeedbackfromrtcp_parameters::RTCPFeedbackRTCP feedback parameters for specifying additional packet types. - struct
RTCResolutionRestrictionfromrtp_encoding_parameters::RTCResolutionRestrictionwebrtc-extensions 5.1RTCResolutionRestriction: the largest dimensions of a frame, orientation agnostic (1280x720 and 720x1280 restrict alike). - struct
RTCRtcpParametersfromrtcp_parameters::RTCRtcpParametersRTCP parameters for RTP streams. - struct
RTCRtpCapabilitiesfromrtp_capabilities::RTCRtpCapabilitiesRTP capabilities representing available codecs and header extensions. - struct
RTCRtpCodecfromrtp_codec::RTCRtpCodecRTP codec capability providing information about supported codecs. - struct
RTCRtpCodecParametersfromrtp_codec_parameters::RTCRtpCodecParametersRTP codec parameters including negotiated payload type. - struct
RTCRtpCodingParametersfromrtp_coding_parameters::RTCRtpCodingParametersRTP coding parameters providing information for encoding and decoding. - struct
RTCRtpEncodingParametersfromrtp_encoding_parameters::RTCRtpEncodingParametersRTP encoding parameters for individual encodings in a simulcast or layered stream. - struct
RTCRtpFecParametersfromrtp_coding_parameters::RTCRtpFecParametersFEC parameters for forward error correction streams. - struct
RTCRtpHeaderExtensionCapabilityfromrtp_header_extension_capability::RTCRtpHeaderExtensionCapabilityRTP header extension capability. - struct
RTCRtpHeaderExtensionParametersfromrtp_header_extension_parameters::RTCRtpHeaderExtensionParametersNegotiated RTP header extension parameters. - struct
RTCRtpHeaderExtensionToNegotiatefromrtp_header_extension_capability::RTCRtpHeaderExtensionToNegotiateAn RTP header extension with the direction this transceiver negotiates it in (webrtc-extensions 4.1:RTCRtpHeaderExtensionCapabilitywith itsdirectionmember; the items of[HeaderExtensionsToNegotiate]and[NegotiatedHeaderExtensions]). - struct
RTCRtpParametersfromrtp_parameters::RTCRtpParametersRTP parameters containing negotiated codecs and header extensions. - struct
RTCRtpReceiveParametersfromrtp_receiver_parameters::RTCRtpReceiveParametersRTP receive parameters for configuring receivers. - struct
RTCRtpRidRestrictionsfromrtp_coding_parameters::RTCRtpRidRestrictionsThe restrictions ana=ridline places on an RTP stream (RFC 8851 section 5).None, or an empty list, is "not restricted". - struct
RTCRtpRtxParametersfromrtp_coding_parameters::RTCRtpRtxParametersRTX parameters for retransmission streams. - struct
RTCRtpSenderRTCRtpSender controls the encoding and transmission of media tracks to remote peers. - struct
RTCRtpSendParametersfromrtp_send_parameters::RTCRtpSendParametersRTP send parameters for configuring senders. - struct
RTCSetParameterOptionsfromset_parameter_options::RTCSetParameterOptionsOptions for set_parameters() operation. - enum
RTCRtpHeaderExtensionEncryptionfromrtp_header_extension_capability::RTCRtpHeaderExtensionEncryptionHow offers signal a header extension with respect to header extension encryption (RFC 6904); seeMediaEngine::set_header_extension_encryption. - enum
RtpCodecKindfromrtp_codec::RtpCodecKindCodec kind identifying the media type. - const
MAX_SEND_ENCODINGSThe most encodings a sender has (W3C webrtc 5.1addTransceiver: "the maximum number of total simultaneous encodings the user agent may support"):sendEncodingspast this many are dropped from the end. - const
RTCP_FB_ACK_CCFBfromrtcp_parameters::RTCP_FB_ACK_CCFBTheackparameter of RFC 8888 congestion control feedback:a=rtcp-fb:<pt> ack ccfb. - const
TYPE_RTCP_FB_ACKfromrtcp_parameters::TYPE_RTCP_FB_ACKAcknowledgment feedback type - const
TYPE_RTCP_FB_CCMfromrtcp_parameters::TYPE_RTCP_FB_CCMCodec Control Message feedback type - const
TYPE_RTCP_FB_GOOG_REMBfromrtcp_parameters::TYPE_RTCP_FB_GOOG_REMBGoogle REMB (Receiver Estimated Maximum Bitrate) feedback type - const
TYPE_RTCP_FB_NACKfromrtcp_parameters::TYPE_RTCP_FB_NACKNegative Acknowledgment feedback type - const
TYPE_RTCP_FB_TRANSPORT_CCfromrtcp_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.
- struct
RTCDTMFSenderW3CRTCDTMFSender: the DTMF sender of an audioRTCRtpSender, fromRTCRtpSender::dtmf. - struct
RTCDTMFToneChangeEventW3CRTCDTMFToneChangeEvent: a tone began, or the tone buffer ran out (toneempty). - const
DTMF_COMMA_DELAYThe pause a,in the tone buffer stands for (W3C: 2 seconds). - const
DTMF_DEFAULT_DURATIONThe defaultdurationofinsert_dtmf(W3C: 100 ms). - const
DTMF_DEFAULT_INTER_TONE_GAPThe defaultinterToneGapofinsert_dtmf(W3C: 70 ms). - const
DTMF_MAX_DURATIONThe longest tone, and the longest gap (W3C: 6000 ms). - const
DTMF_MIN_DURATIONThe shortest tone (W3C: a shorterdurationis played for 40 ms). - const
DTMF_MIN_INTER_TONE_GAPThe shortest gap between tones (W3C: 30 ms). - const
DTMF_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). - const
MIME_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.
- struct
RTCRtpSFrameDecryptorRTCRtpSFrameDecryptor(andSFrameDecryptorStream): decrypts a receiver's SFrame ciphertexts with the keysaddDecryptionKeyadded. - struct
RTCRtpSFrameEncryptorRTCRtpSFrameEncryptor(andSFrameEncryptorStream): SFrame-encrypts the frames of a sender with the cipher suite of its options and the keysetEncryptionKeyset. - struct
RTCSFrameLayerOne spatial layer of an access unit as its own SFrame ciphertext (RFC 9605 section 6.1.3), fromRTCRtpSFrameEncryptor::transform_access_unit. Each is sent as its own SFrame RTP frame, with the Dependency Descriptor of its layer frame. - struct
RTCSFrameTransformErrorSFrameTransformErrorEvent: 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. - enum
RTCSFrameTransformErrorTypeSFrameTransformErrorEventType. - enum
RTCSFrameTypeSFrameType: how a sender's SFrame ciphertext is carried (draft-ietf-avtcore-rtp-sframe: one SFrame per media frame, or one per RTP packet). - fn
join_layer_framesThe decrypted layers of one picture (one RTP timestamp), lowest first, as the access unit the decoder ofmime_typetakes: 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.
- mod
reportWebRTC Statistics Report types. - mod
statsWebRTC Statistics API types. - struct
FecReceivedStatsfromfec::FecReceivedStatsThe FEC an inbound stream received and what became of it. - struct
FecSentStatsfromfec::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. - struct
FecStatsfromfec::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. - enum
StatsSelectorSelector for filtering statistics inget_stats(). - use
AudioPlayoutStatsUpdatefromaccumulator::AudioPlayoutStatsUpdate - use
AudioReceiverStatsUpdatefromaccumulator::AudioReceiverStatsUpdate - use
AudioSourceStatsUpdatefromaccumulator::AudioSourceStatsUpdate - use
DecoderStatsUpdatefromaccumulator::DecoderStatsUpdate - use
EncoderStatsUpdatefromaccumulator::EncoderStatsUpdate - use
PsnrSumfromaccumulator::PsnrSum - use
QualityLimitationDurationsfromaccumulator::QualityLimitationDurations - use
VideoSourceStatsUpdatefromaccumulator::VideoSourceStatsUpdate
rtci::statistics::report
WebRTC Statistics Report types.
- struct
RTCStatsReportA collection of statistics objects returned bygetStats(). - enum
RTCStatsReportEntryAn entry in the stats report representing a single statistics object.
rtci::statistics::stats
WebRTC Statistics API types.
- mod
certificateCertificate statistics. - mod
codecCodec statistics. - mod
data_channelData channel statistics. - mod
ice_candidateICE candidate statistics. - mod
ice_candidate_pairICE candidate pair statistics. - mod
mediaMedia statistics types. - mod
peer_connectionPeer connection statistics. - mod
rtp_streamRTP stream statistics. - mod
transportTransport statistics. - struct
RTCStatsBase statistics fields common to all statistics objects. - enum
RTCQualityLimitationReasonThe reason for quality limitation in video encoding. - enum
RTCStatsTypeThe type of a statistics object. - type
RTCStatsIdThe unique identifier for a statistics object.
rtci::statistics::stats::certificate
Certificate statistics.
- struct
RTCCertificateStatsStatistics for a certificate used in DTLS.
rtci::statistics::stats::codec
Codec statistics.
- struct
RTCCodecStatsStatistics for a codec used in an RTP stream.
rtci::statistics::stats::data_channel
Data channel statistics.
- struct
RTCDataChannelStatsStatistics for a data channel.
rtci::statistics::stats::ice_candidate
ICE candidate statistics.
- struct
RTCIceCandidateStatsStatistics for an ICE candidate.
rtci::statistics::stats::ice_candidate_pair
ICE candidate pair statistics.
- struct
RTCIceCandidatePairStatsStatistics for an ICE candidate pair. - enum
RTCStatsIceCandidatePairStateThe state of an ICE candidate pair.
rtci::statistics::stats::media
Media statistics types.
- mod
audio_playoutAudio playout statistics. - mod
audio_sourceAudio source statistics. - mod
media_sourceMedia source statistics. - mod
video_sourceVideo source statistics.
rtci::statistics::stats::media::audio_playout
Audio playout statistics.
- struct
RTCAudioPlayoutStatsStatistics for audio playout.
rtci::statistics::stats::media::audio_source
Audio source statistics.
- struct
RTCAudioSourceStatsStatistics for an audio source.
rtci::statistics::stats::media::media_source
Media source statistics.
- struct
RTCMediaSourceStatsBase statistics for a media source.
rtci::statistics::stats::media::video_source
Video source statistics.
- struct
RTCVideoSourceStatsStatistics for a video source.
rtci::statistics::stats::peer_connection
Peer connection statistics.
- struct
RTCPeerConnectionStatsStatistics for the peer connection.
rtci::statistics::stats::rtp_stream
RTP stream statistics.
- mod
receivedReceived RTP stream statistics. - mod
sentSent RTP stream statistics. - struct
RTCRtpStreamStatsBase statistics for an RTP stream.
rtci::statistics::stats::rtp_stream::received
Received RTP stream statistics.
- mod
inboundInbound RTP stream statistics. - mod
remote_inboundRemote inbound RTP stream statistics. - struct
RTCReceivedRtpStreamStatsBase statistics for a received RTP stream.
rtci::statistics::stats::rtp_stream::received::inbound
Inbound RTP stream statistics.
- struct
RTCInboundRtpStreamStatsStatistics for a locally received inbound RTP stream.
rtci::statistics::stats::rtp_stream::received::remote_inbound
Remote inbound RTP stream statistics.
- struct
RTCRemoteInboundRtpStreamStatsStatistics for a remote inbound RTP stream.
rtci::statistics::stats::rtp_stream::sent
Sent RTP stream statistics.
- mod
outboundOutbound RTP stream statistics. - mod
remote_outboundRemote outbound RTP stream statistics. - struct
RTCSentRtpStreamStatsBase statistics for a sent RTP stream.
rtci::statistics::stats::rtp_stream::sent::outbound
Outbound RTP stream statistics.
- struct
RTCOutboundRtpStreamStatsStatistics for a locally sent outbound RTP stream.
rtci::statistics::stats::rtp_stream::sent::remote_outbound
Remote outbound RTP stream statistics.
- struct
RTCRemoteOutboundRtpStreamStatsStatistics for a remote outbound RTP stream.
rtci::statistics::stats::transport
Transport statistics.
- struct
RTCTransportStatsStatistics for the transport layer.
Generated from the sources of rtci 0.5.0 at its release tag. Items made by macros and methods are on docs.rs.