Expand description
The four-byte header common to every RTCP packet. The RTCP header.
Four bytes on every packet: version and padding flags, a 5-bit count whose meaning depends on
the packet type, the PacketType itself, and a length in 32-bit words. The *_SHIFT and
*_MASK constants describe how the flags pack into the first octet.
The length field is why RTCP is compound: several packets can be concatenated in one datagram and walked by stepping over each header’s length.
Structs§
- Header
- A Header is the common header shared by all RTCP packets
Enums§
- Packet
Type - PacketType 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
Constants§
- COUNT_
MASK - Bit mask of the report/source count field.
- COUNT_
MAX - The largest report count the 5-bit field can hold.
- COUNT_
SHIFT - Bit offset of the report/source count field.
- FIR_
MIN_ OCTET_ COUNT - The smallest valid FIR packet, in bytes.
- FORMAT_
AFB - FMT of application-layer feedback (PSFB, RFC 4585 §6.4), which REMB is one kind of.
- FORMAT_
CCFB - FMT value for CCFB (Congestion Control Feedback) per RFC 8888
- FORMAT_
ECN - FMT value for the RTCP ECN Feedback packet (RFC 6679 section 5.1)
- FORMAT_
FIR - FMT of the Full Intra Request (PSFB, RFC 5104 §4.3.1).
- FORMAT_
LRR - FMT of the Layer Refresh Request (PSFB, RFC 9627 §3).
- FORMAT_
PAUSE_ RESUME - FMT of the PAUSE-RESUME message (RTPFB, RFC 7728 section 7).
- FORMAT_
PLI - FMT of the Picture Loss Indication (PSFB, RFC 4585 §6.3.1).
- FORMAT_
REMB - FMT of REMB: application-layer feedback whose payload starts with
REMB. - FORMAT_
RPSI - FMT of the Reference Picture Selection Indication (PSFB, RFC 4585 §6.3.3).
- FORMAT_
RRR - FMT of the Rapid Resynchronisation Request (RTPFB, RFC 6051 §3.2).
- FORMAT_
SLI - FMT of the Slice Loss Indication (PSFB, RFC 4585 §6.3.2).
- FORMAT_
TCC - FMT of transport-wide congestion control feedback (RTPFB). https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5
- FORMAT_
TLN - FMT of the generic NACK (RTPFB, RFC 4585 §6.2.1).
- FORMAT_
TMMBN - FMT of the Temporary Maximum Media Stream Bit Rate Notification (RTPFB, RFC 5104 §4.2.2).
- FORMAT_
TMMBR - FMT of the Temporary Maximum Media Stream Bit Rate Request (RTPFB, RFC 5104 §4.2.1).
- FORMAT_
TSTN - FMT of the Temporal-Spatial Trade-off Notification (PSFB, RFC 5104 §4.3.3).
- FORMAT_
TSTR - FMT of the Temporal-Spatial Trade-off Request (PSFB, RFC 5104 §4.3.2).
- FORMAT_
VBCM - FMT of the Video Back Channel Message (PSFB, RFC 5104 §4.3.4).
- HEADER_
LENGTH - Length of the RTCP header in bytes.
- PADDING_
MASK - Bit mask of the padding flag once shifted.
- PADDING_
SHIFT - Bit offset of the padding flag.
- RTP_
VERSION - The RTP/RTCP version this crate speaks.
- SDES_
MAX_ OCTET_ COUNT - The longest SDES item value, bounded by its one-byte length field.
- SSRC_
LENGTH - Length of an SSRC in bytes.
- VERSION_
MASK - Bit mask of the version field once shifted.
- VERSION_
SHIFT - Bit offset of the version field in the first header octet.