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_
CCFB - FMT value for CCFB (Congestion Control Feedback) per RFC 8888
- FORMAT_
FIR - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here
- FORMAT_
PLI - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here
- FORMAT_
REMB - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here
- FORMAT_
RRR - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here
- FORMAT_
SLI - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here
- FORMAT_
TCC - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here. https://tools.ietf.org/html/draft-holmer-rmcat-transport-wide-cc-extensions-01#page-5
- FORMAT_
TLN - Transport and Payload specific feedback messages overload the count field to act as a message type. those are listed here
- 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.