rtci-rtcp
RTCP packet parsing and serialization (RFC 3550, RFC 4585, RFC 5104, RFC 3611, RFC 8888) for WebRTC. 38 public modules, 174 items at 0.5.0.
cargo add [email protected] · crates.io · docs.rs · README on GitHub· MSRV 1.89
README
RTCP packet parsing and serialization: sender and receiver reports, source description, BYE, application-defined packets, the transport-layer and payload-specific feedback messages (NACK, TWCC, PLI, FIR, REMB and others), extended reports and congestion control feedback, and compound packets.
Specifications
- RFC 3550, RTCP packet formats; RFC 5506, reduced-size RTCP
- RFC 4585, RTP/AVPF feedback; RFC 5104, codec control messages
- RFC 3611, RTCP extended reports; RFC 6679, ECN feedback
- RFC 8888, RTCP congestion control feedback; RFC 7728, pause and resume
Clause-by-clause status, with the test that proves each clause: rfc3550, rfc4585, rfc5104, rfc3611, rfc6679, rfc8888.
Use
rtci_rtcp::packet::unmarshal parses a (compound) RTCP datagram into packets; every packet type implements rtci-shared's Marshal / Unmarshal. The RTCP session logic (when to send what) is in rtci-interceptor.
Sans-I/O
A codec only: bytes in, typed packets out, and back. It holds no state between packets and reads no clock.
Licence
Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.
This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.
rtci_rtcp
Package rtcp implements encoding and decoding of RTCP packets according to RFCs 3550 and 5506, with the feedback messages of RFC 4585 and RFC 5104, the extended reports of RFC 3611 and the congestion control feedback of RFC 8888.
- mod
application_definedThe APP packet: application-defined data under a four-character name. - mod
compound_packetCompound RTCP packets — the several reports that share one datagram. - mod
extended_reportExtended reports (XR, [RFC 3611]): loss/discard run lengths, receipt times and per-block statistics. - mod
goodbyeThe BYE packet, by which a source announces it is leaving. - mod
headerThe four-byte header common to every RTCP packet. - mod
packetThePackettrait every RTCP packet type implements. - mod
payload_feedbacksPayload-specific feedback (PT 206): PLI, SLI, RPSI, FIR, TSTR, TSTN, VBCM, LRR, REMB and other application layer feedback. - mod
raw_packetAn unparsed packet, used for types this crate does not model. - mod
receiver_reportThe Receiver Report (RR), which reports reception quality back to a sender. - mod
reception_reportThe reception report block carried inside SR and RR packets. - mod
sender_reportThe Sender Report (SR), which carries a sender's timing and packet counts. - mod
source_descriptionThe SDES packet, which carries CNAME and other source metadata. - mod
transport_feedbacksTransport-specific feedback (PT 205): NACK, TMMBR, TMMBN, rapid resynchronisation, transport-wide congestion control and RFC 8888 feedback. - use
Headerfromheader::HeaderA Header is the common header shared by all RTCP packets - use
Packetfrompacket::PacketPacket represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session
rtci_rtcp::application_defined
The APP packet: application-defined data under a four-character name.
- struct
ApplicationDefinedAn APP packet: experimental or application-specific data that needs no registered packet type.
rtci_rtcp::compound_packet
Compound RTCP packets — the several reports that share one datagram.
- struct
CompoundPacketA CompoundPacket is a collection of RTCP packets transmitted as a single packet with the underlying protocol (for example UDP). - fn
validate_compoundChecks thatraw, one datagram, is a compound RTCP packet as RFC 3550 defines it. - fn
validate_compound_headersThe header checks of RFC 3550 Appendix A.2 onraw, one datagram, as a compound packet: every packet is version 2, the first is an SR or an RR with the padding bit clear, the lengths add up to the datagram, and only the last packet is padded (section 6.4.1). - fn
validate_reduced_sizeChecks thatraw, one datagram, is acceptable as reduced-size RTCP (RFC 5506 §4.1): one or more RTCP packets of any type, with no SR or RR in front and no SDES required.
rtci_rtcp::extended_report
Extended reports (XR, [RFC 3611]): loss/discard run lengths, receipt times and per-block statistics.
- mod
dlrrDelay Since Last Receiver Report blocks, for round-trip time between receivers. - mod
ecnECN Summary Report blocks (RFC 6679 section 5.2). - mod
prtPacket Receipt Times blocks. - mod
rleLoss and Duplicate RLE report blocks. - mod
rrtReceiver Reference Time blocks, which anchor DLRR round-trip calculations. - mod
ssrStatistics Summary blocks: loss, duplicate, jitter and TTL ranges. - mod
unknownAn unparsed block, for types this crate does not model. - mod
vmVoIP Metrics blocks, which carry call-quality estimates. - struct
ExtendedReportThe ExtendedReport packet is an Implementation of RTCP Extended reports defined in RFC 3611. It is used to convey detailed information about an RTP stream. Each packet contains one or more report blocks, each of which conveys a different kind of information. - struct
XRHeaderXRHeader defines the common fields that must appear at the start of each report block. In typical cases, users of ExtendedReports shouldn't need to access this. For locally-constructed report blocks, these values will not be accurate until the corresponding packet is marshaled. - enum
BlockTypeBlockType specifies the type of report in a report block Extended Report block types from RFC 3611. - type
TypeSpecificFieldTypeSpecificField as described in RFC 3611 section 4.5. In typical cases, users of ExtendedReports shouldn't need to access this, and should instead use the corresponding fields in the actual report blocks themselves. - use
Chunkfromrle::ChunkChunk as defined in RFC 3611, section 4.1. These represent information about packet losses and packet duplication. They have three representations: - use
ChunkTypefromrle::ChunkTypeChunkType enumerates the three kinds of chunks described in RFC 3611 section 4.1. - use
DLRRReportfromdlrr::DLRRReportDLRRReport encodes a single report inside a DLRRReportBlock. - use
DLRRReportBlockfromdlrr::DLRRReportBlockDLRRReportBlock encodes a DLRR Report Block as described in RFC 3611 section 4.5. - use
DuplicateRLEReportBlockfromrle::DuplicateRLEReportBlockDuplicateRLEReportBlock is used to report information about packet duplication, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = false - use
EcnSummaryReportfromecn::EcnSummaryReportThe counters of one media sender in anEcnSummaryReportBlock. - use
EcnSummaryReportBlockfromecn::EcnSummaryReportBlockThe RTCP XR ECN Summary Report block (RFC 6679 section 5.2): BT 13, one data block per media sender. Negotiated witha=rtcp-xr:ecn-sum(section 6.3); an ECN-capable receiver includes one in every regular compound RTCP packet (section 7.3.2), with no data block when no SSRC counts as a sender (block length zero). - use
LossRLEReportBlockfromrle::LossRLEReportBlockLossRLEReportBlock is used to report information about packet losses, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = true - use
PacketReceiptTimesReportBlockfromprt::PacketReceiptTimesReportBlockPacketReceiptTimesReportBlock represents a Packet Receipt Times report block, as described in RFC 3611 section 4.3. - use
ReceiverReferenceTimeReportBlockfromrrt::ReceiverReferenceTimeReportBlockReceiverReferenceTimeReportBlock encodes a Receiver Reference Time report block as described in RFC 3611 section 4.4. - use
reported_sequence_numbersfromrle::reported_sequence_numbersThe sequence numbers ofbegin_seq..end_seq(modulo 2^16) a block with thinningtreports on: those that are a multiple of 2^t (RFC 3611 section 4.1). - use
RLEReportBlockfromrle::RLEReportBlockRleReportBlock defines the common structure used by both Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE report blocks (RFC 3611 §4.2). - use
StatisticsSummaryReportBlockfromssr::StatisticsSummaryReportBlockStatisticsSummaryReportBlock encodes a Statistics Summary Report Block as described in RFC 3611, section 4.6. - use
TTLorHopLimitTypefromssr::TTLorHopLimitTypeTTLorHopLimitType encodes values for the ToH field in a StatisticsSummaryReportBlock - use
UnknownReportBlockfromunknown::UnknownReportBlockUnknownReportBlock stores a report block that is not parsed: one of a type this crate does not model, or one of a known type that is malformed. - use
VoIPMetricsReportBlockfromvm::VoIPMetricsReportBlockVoIPMetricsReportBlock encodes a VoIP Metrics Report Block as described in RFC 3611, section 4.7.
rtci_rtcp::extended_report::dlrr
Delay Since Last Receiver Report blocks, for round-trip time between receivers.
- struct
DLRRReportDLRRReport encodes a single report inside a DLRRReportBlock. - struct
DLRRReportBlockDLRRReportBlock encodes a DLRR Report Block as described in RFC 3611 section 4.5.
rtci_rtcp::extended_report::ecn
ECN Summary Report blocks (RFC 6679 section 5.2).
- struct
EcnSummaryReportThe counters of one media sender in anEcnSummaryReportBlock. - struct
EcnSummaryReportBlockThe RTCP XR ECN Summary Report block (RFC 6679 section 5.2): BT 13, one data block per media sender. Negotiated witha=rtcp-xr:ecn-sum(section 6.3); an ECN-capable receiver includes one in every regular compound RTCP packet (section 7.3.2), with no data block when no SSRC counts as a sender (block length zero).
rtci_rtcp::extended_report::prt
Packet Receipt Times blocks.
- struct
PacketReceiptTimesReportBlockPacketReceiptTimesReportBlock represents a Packet Receipt Times report block, as described in RFC 3611 section 4.3.
rtci_rtcp::extended_report::rle
Loss and Duplicate RLE report blocks.
- struct
ChunkChunk as defined in RFC 3611, section 4.1. These represent information about packet losses and packet duplication. They have three representations: - struct
RLEReportBlockRleReportBlock defines the common structure used by both Loss RLE report blocks (RFC 3611 §4.1) and Duplicate RLE report blocks (RFC 3611 §4.2). - enum
ChunkTypeChunkType enumerates the three kinds of chunks described in RFC 3611 section 4.1. - fn
reported_sequence_numbersThe sequence numbers ofbegin_seq..end_seq(modulo 2^16) a block with thinningtreports on: those that are a multiple of 2^t (RFC 3611 section 4.1). - type
DuplicateRLEReportBlockDuplicateRLEReportBlock is used to report information about packet duplication, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = false - type
LossRLEReportBlockLossRLEReportBlock is used to report information about packet losses, as described in RFC 3611, section 4.1 make sure to set is_loss_rle = true - const
BIT_VECTOR_LENGTHThe packets one bit-vector chunk describes (RFC 3611 section 4.1.2). - const
MAX_RUN_LENGTHThe longest run a run-length chunk holds (RFC 3611 section 4.1.1: 14 bits, 1 to 16,383).
rtci_rtcp::extended_report::rrt
Receiver Reference Time blocks, which anchor DLRR round-trip calculations.
- struct
ReceiverReferenceTimeReportBlockReceiverReferenceTimeReportBlock encodes a Receiver Reference Time report block as described in RFC 3611 section 4.4.
rtci_rtcp::extended_report::ssr
Statistics Summary blocks: loss, duplicate, jitter and TTL ranges.
- struct
StatisticsSummaryReportBlockStatisticsSummaryReportBlock encodes a Statistics Summary Report Block as described in RFC 3611, section 4.6. - enum
TTLorHopLimitTypeTTLorHopLimitType encodes values for the ToH field in a StatisticsSummaryReportBlock
rtci_rtcp::extended_report::unknown
An unparsed block, for types this crate does not model.
- struct
UnknownReportBlockUnknownReportBlock stores a report block that is not parsed: one of a type this crate does not model, or one of a known type that is malformed.
rtci_rtcp::extended_report::vm
VoIP Metrics blocks, which carry call-quality estimates.
- struct
VoIPMetricsReportBlockVoIPMetricsReportBlock encodes a VoIP Metrics Report Block as described in RFC 3611, section 4.7. - const
VOIP_METRIC_UNAVAILABLEThe value of a metric that is not available (RFC 3611 §4.7.4, §4.7.5). - const
VOIP_METRICS_DEFAULT_GMINThe Gmin RFC 3611 §4.7.2 recommends.
rtci_rtcp::goodbye
The BYE packet, by which a source announces it is leaving.
- struct
GoodbyeThe Goodbye packet indicates that one or more sources are no longer active.
rtci_rtcp::header
The four-byte header common to every RTCP packet.
- struct
HeaderA Header is the common header shared by all RTCP packets - enum
PacketTypePacketType specifies the type of an RTCP packet RTCP packet types registered with IANA. See: <https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-4> - const
COUNT_MASKBit mask of the report/source count field. - const
COUNT_MAXThe largest report count the 5-bit field can hold. - const
COUNT_SHIFTBit offset of the report/source count field. - const
FIR_MIN_OCTET_COUNTThe smallest valid FIR packet, in bytes. - const
FORMAT_AFBFMT of application-layer feedback (PSFB, RFC 4585 §6.4), which REMB is one kind of. - const
FORMAT_CCFBFMT value for CCFB (Congestion Control Feedback) per RFC 8888 - const
FORMAT_ECNFMT value for the RTCP ECN Feedback packet (RFC 6679 section 5.1) - const
FORMAT_FIRFMT of the Full Intra Request (PSFB, RFC 5104 §4.3.1). - const
FORMAT_LRRFMT of the Layer Refresh Request (PSFB, RFC 9627 §3). - const
FORMAT_PAUSE_RESUMEFMT of the PAUSE-RESUME message (RTPFB, RFC 7728 section 7). - const
FORMAT_PLIFMT of the Picture Loss Indication (PSFB, RFC 4585 §6.3.1). - const
FORMAT_REMBFMT of REMB: application-layer feedback whose payload starts withREMB. - const
FORMAT_RPSIFMT of the Reference Picture Selection Indication (PSFB, RFC 4585 §6.3.3). - const
FORMAT_RRRFMT of the Rapid Resynchronisation Request (RTPFB, RFC 6051 §3.2). - const
FORMAT_SLIFMT of the Slice Loss Indication (PSFB, RFC 4585 §6.3.2). - const
FORMAT_TCCFMT of transport-wide congestion control feedback (RTPFB). <https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5> - const
FORMAT_TLNFMT of the generic NACK (RTPFB, RFC 4585 §6.2.1). - const
FORMAT_TMMBNFMT of the Temporary Maximum Media Stream Bit Rate Notification (RTPFB, RFC 5104 §4.2.2). - const
FORMAT_TMMBRFMT of the Temporary Maximum Media Stream Bit Rate Request (RTPFB, RFC 5104 §4.2.1). - const
FORMAT_TSTNFMT of the Temporal-Spatial Trade-off Notification (PSFB, RFC 5104 §4.3.3). - const
FORMAT_TSTRFMT of the Temporal-Spatial Trade-off Request (PSFB, RFC 5104 §4.3.2). - const
FORMAT_VBCMFMT of the Video Back Channel Message (PSFB, RFC 5104 §4.3.4). - const
HEADER_LENGTHLength of the RTCP header in bytes. - const
PADDING_MASKBit mask of the padding flag once shifted. - const
PADDING_SHIFTBit offset of the padding flag. - const
RTP_VERSIONThe RTP/RTCP version this crate speaks. - const
SDES_MAX_OCTET_COUNTThe longest SDES item value, bounded by its one-byte length field. - const
SSRC_LENGTHLength of an SSRC in bytes. - const
VERSION_MASKBit mask of the version field once shifted. - const
VERSION_SHIFTBit offset of the version field in the first header octet.
rtci_rtcp::packet
The Packet trait every RTCP packet type implements.
- trait
PacketPacket represents an RTCP packet, a protocol used for out-of-band statistics and control information for an RTP session - fn
marshalmarshal takes an array of Packets and serializes them to a single buffer - fn
unmarshalUnmarshal takes an entire udp datagram (which may consist of multiple RTCP packets) and returns the unmarshaled packets it contains. - fn
unmarshal_lenientLikeunmarshal, but a packet of a known type that fails its own parse does not cost the datagram: it comes back as aRawPacketwith its bytes, and the packets around it are parsed as usual.
rtci_rtcp::payload_feedbacks
Payload-specific feedback (PT 206): PLI, SLI, RPSI, FIR, TSTR, TSTN, VBCM, LRR, REMB and other application layer feedback.
- mod
application_layer_feedbackAFB: application layer feedback that is not REMB. - mod
full_intra_requestFIR: asks a sender for a full intra frame, used when a receiver joins or resyncs. - mod
layer_refresh_requestLRR: asks the encoder of a scalable stream for a layer refresh point. - mod
picture_loss_indicationPLI: tells a sender the receiver lost picture and needs a keyframe. - mod
receiver_estimated_maximum_bitrateREMB: the receiver's estimate of the bitrate the path can carry. - mod
reference_picture_selection_indicationRPSI: names a reference picture in the codec's own terms. - mod
slice_loss_indicationSLI: reports individual lost slices, for finer-grained repair than PLI. - mod
temporal_spatial_tradeoffTSTR and TSTN: the trade-off between frame rate and picture quality, asked and answered. - mod
video_back_channel_messageVBCM: an H.271 video back channel message.
rtci_rtcp::payload_feedbacks::application_layer_feedback
AFB: application layer feedback that is not REMB.
- struct
ApplicationLayerFeedbackApplication layer feedback (PSFB FMT=15): a message from one application to its peer that RTCP only carries.
rtci_rtcp::payload_feedbacks::full_intra_request
FIR: asks a sender for a full intra frame, used when a receiver joins or resyncs.
- struct
FirEntryA FIREntry is a (ssrc, seqno) pair, as carried by FullIntraRequest. - struct
FullIntraRequestThe FullIntraRequest packet is used to reliably request an Intra frame in a video stream. See RFC 5104 Section 3.5.1. This is not for loss recovery, which should use PictureLossIndication (PLI) instead.
rtci_rtcp::payload_feedbacks::layer_refresh_request
LRR: asks the encoder of a scalable stream for a layer refresh point.
- struct
LayerRefreshRequestLayer Refresh Request (LRR, PSFB FMT=10). - struct
LrrCurrentLayerThe layers a receiver decodes at the time of the request. - struct
LrrEntryOne FCI entry of an LRR.
rtci_rtcp::payload_feedbacks::picture_loss_indication
PLI: tells a sender the receiver lost picture and needs a keyframe.
- struct
PictureLossIndicationThe PictureLossIndication packet informs the encoder about the loss of an undefined amount of coded video data belonging to one or more pictures
rtci_rtcp::payload_feedbacks::receiver_estimated_maximum_bitrate
REMB: the receiver's estimate of the bitrate the path can carry.
- struct
ReceiverEstimatedMaximumBitrateReceiverEstimatedMaximumBitrate contains the receiver's estimated maximum bitrate.
rtci_rtcp::payload_feedbacks::reference_picture_selection_indication
RPSI: names a reference picture in the codec's own terms.
- struct
ReferencePictureSelectionIndicationReference Picture Selection Indication (PSFB FMT=3): the receiver names a reference picture in the codec's own terms. Exactly one indication per packet.
rtci_rtcp::payload_feedbacks::slice_loss_indication
SLI: reports individual lost slices, for finer-grained repair than PLI.
- struct
SliceLossIndicationThe SliceLossIndication packet informs the encoder about the loss of a picture slice - struct
SliEntrySLIEntry represents a single entry to the SLI packet's list of lost slices.
rtci_rtcp::payload_feedbacks::temporal_spatial_tradeoff
TSTR and TSTN: the trade-off between frame rate and picture quality, asked and answered.
- struct
TstEntryOne FCI entry of a TSTR or a TSTN.
rtci_rtcp::payload_feedbacks::video_back_channel_message
VBCM: an H.271 video back channel message.
- struct
VbcmEntryOne FCI entry of a VBCM: an H.271 message for one media sender. - struct
VideoBackChannelMessageH.271 Video Back Channel Message (VBCM, PSFB FMT=7, RFC 5104 §4.3.4).
rtci_rtcp::raw_packet
An unparsed packet, used for types this crate does not model.
- struct
RawPacketRawPacket represents an unparsed RTCP packet. It's returned by Unmarshal when a packet with an unknown type is encountered.
rtci_rtcp::receiver_report
The Receiver Report (RR), which reports reception quality back to a sender.
- struct
ReceiverReportA ReceiverReport (RR) packet provides reception quality feedback for an RTP stream
rtci_rtcp::reception_report
The reception report block carried inside SR and RR packets.
- struct
ReceptionReportA ReceptionReport block conveys statistics on the reception of RTP packets from a single synchronization source.
rtci_rtcp::sender_report
The Sender Report (SR), which carries a sender's timing and packet counts.
- struct
SenderReportA SenderReport (SR) packet provides reception quality feedback for an RTP stream
rtci_rtcp::source_description
The SDES packet, which carries CNAME and other source metadata.
- struct
SourceDescriptionA SourceDescription (SDES) packet describes the sources in an RTP stream. - struct
SourceDescriptionChunkA SourceDescriptionChunk contains items describing a single RTP source - struct
SourceDescriptionItemA SourceDescriptionItem is a part of a SourceDescription that describes a stream. - enum
SdesTypeSDESType is the item type used in the RTCP SDES control packet. RTP SDES item types registered with IANA. See: <https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml#rtp-parameters-5>
rtci_rtcp::transport_feedbacks
Transport-specific feedback (PT 205): NACK, TMMBR, TMMBN, rapid resynchronisation, transport-wide congestion control and RFC 8888 feedback.
- mod
cc_feedback_reportRFC 8888 congestion control feedback: per-packet arrival, ECN and arrival-time offsets. - mod
ecn_feedbackRFC 6679 ECN feedback: cumulative ECT, ECN-CE, not-ECT, loss and duplicate counters. - mod
pause_resumeRFC 7728 PAUSE-RESUME: PAUSE and RESUME requests, PAUSED and REFUSED answers. - mod
rapid_resynchronization_requestRRR: asks a sender to resynchronize as quickly as it can. - mod
tmmbTMMBR and TMMBN: a temporary bit rate limit, asked and announced. - mod
transport_layer_ccTransport-wide congestion control feedback: per-packet arrival status and deltas. - mod
transport_layer_nackGeneric NACK, which lists sequence numbers the receiver did not get.
rtci_rtcp::transport_feedbacks::cc_feedback_report
RFC 8888 congestion control feedback: per-packet arrival, ECN and arrival-time offsets.
- struct
CcFeedbackMetricBlockOne packet's fate, in two bytes: whether it arrived, its ECN marking, and when. - struct
CcFeedbackReportAn RTCP Congestion Control Feedback report ([RFC 8888]). - struct
CcFeedbackReportBlockThe packets of one media stream that a report describes. - enum
EcnThe two ECN bits of the IP header, as reported for a received packet ([RFC 3168] §5).
rtci_rtcp::transport_feedbacks::ecn_feedback
RFC 6679 ECN feedback: cumulative ECT, ECN-CE, not-ECT, loss and duplicate counters.
- struct
EcnCountersThe cumulative ECN counters of one RTP source as a receiver keeps them (RFC 6679 section 5.1). The two ECT counters are 32 bits on the wire, the others the 16 least significant bits of the receiver's count ("the field will wrap if more than 65535 ... have been received"). "The counters SHALL be initiated to 0 for each new SSRC received." - struct
EcnFeedbackThe RTP/AVPF transport-layer ECN Feedback packet (RFC 6679 section 5.1): RTPFB, FMT 8, one ECN Feedback Report about one RTP source. Negotiated witha=rtcp-fb:<pt> nack ecn(section 6.2); sent early or immediately when ECN-CE marks or losses need to reach the sender quickly. - const
ECN_COUNTERS_LENGTHThe octets of the counters an ECN Feedback Report and an ECN Summary Report data block share (RFC 6679 sections 5.1 and 5.2): ECT(0), ECT(1), ECN-CE, not-ECT, lost, duplicates. - const
ECN_FEEDBACK_REPORT_LENGTHThe octets of an ECN Feedback Report (RFC 6679 section 5.1, Figure 2): the extended highest sequence number and the counters.
rtci_rtcp::transport_feedbacks::pause_resume
RFC 7728 PAUSE-RESUME: PAUSE and RESUME requests, PAUSED and REFUSED answers.
- struct
PauseResumeThe RTP/AVPF transport-layer PAUSE-RESUME message (RFC 7728 section 7): RTPFB, FMT 9, one or more PAUSE, RESUME, PAUSED or REFUSED entries. "SSRC of media source: Not used; SHALL be set to 0. The FCI identifies the SSRC the message is targeted for." Negotiated witha=rtcp-fb:<pt> ccm pause(section 9). - struct
PauseResumeEntryOne FCI entry of a PAUSE-RESUME message (RFC 7728 section 7, Figure 6). - enum
PauseResumeTypeThe pause feedback type of an FCI entry (RFC 7728 section 7, "Type (4 bits)"). - const
PAUSE_RESUME_ENTRY_HEADER_LENGTHThe octets of an FCI entry before its type-specific field: the target SSRC, then the type, the reserved bits, the parameter length and the PauseID (RFC 7728 section 7, Figure 6).
rtci_rtcp::transport_feedbacks::rapid_resynchronization_request
RRR: asks a sender to resynchronize as quickly as it can.
- struct
RapidResynchronizationRequestThe RapidResynchronizationRequest packet informs the encoder about the loss of an undefined amount of coded video data belonging to one or more pictures
rtci_rtcp::transport_feedbacks::tmmb
TMMBR and TMMBN: a temporary bit rate limit, asked and announced.
- struct
TemporaryMaximumBitrateNotificationTemporary Maximum Media Stream Bit Rate Notification (TMMBN, RTPFB FMT=4, RFC 5104 §4.2.2): a media sender announces the bounding set of limits it obeys. - struct
TemporaryMaximumBitrateRequestTemporary Maximum Media Stream Bit Rate Request (TMMBR, RTPFB FMT=3, RFC 5104 §4.2.1): a receiver asks one or more media senders to stay under a bit rate. - struct
TmmbEntryOne FCI entry of a TMMBR or a TMMBN: a bit rate limit and the per-packet overhead it was measured with.
rtci_rtcp::transport_feedbacks::transport_layer_cc
Transport-wide congestion control feedback: per-packet arrival status and deltas.
- struct
RecvDeltaRecvDelta are represented as multiples of 250us small delta is 1 byte: [0,63.75]ms = [0, 63750]us = [0, 255]250us big delta is 2 bytes: [-8192.0, 8191.75]ms = [-8192000, 8191750]us = [-32768, 32767]250us <https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#section-3.1.5> - struct
ReferenceTimeUnwrapperFollows the 24-bit reference time of successive transport-wide feedback packets across its wrap, which comes every 2^24 ticks of 64 ms: about 12.4 days. - struct
RunLengthChunkRunLengthChunk T=TypeTCCRunLengthChunk 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |T| S | Run Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - struct
StatusVectorChunkStatusVectorChunk T=typeStatusVectorChunk 0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |T|S| symbol list | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - struct
TransportLayerCcTransportLayerCC for sender-BWE <https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5> - enum
PacketStatusChunkPacketStatusChunk has two kinds: RunLengthChunk and StatusVectorChunk - enum
StatusChunkTypeTcc<https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5> 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P| FMT=15 | PT=205 | length | … - enum
SymbolSizeTypeTccfor status vector chunk - enum
SymbolTypeTcctype of packet status symbol and recv delta - const
TYPE_TCC_DELTA_SCALE_FACTOR<https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#section-3.1.5> - const
TYPE_TCC_REFERENCE_TIME_TICK_MILLISThe reference time counts 64 ms ticks.
rtci_rtcp::transport_feedbacks::transport_layer_nack
Generic NACK, which lists sequence numbers the receiver did not get.
- struct
NackIteratorIterates the individual sequence numbers aNackPairencodes. - struct
NackPairNackPair is a wire-representation of a collection of Lost RTP packets - struct
TransportLayerNack- [RFC 4585 §6.2.1]
- fn
nack_pairs_from_sequence_numbersPacks a list of lost sequence numbers into the smallest set ofNackPairs.
Generated from the sources of rtci-rtcp 0.5.0 at its release tag. Items made by macros and methods are on docs.rs.