Skip to main content

Module header

Module header 

Source
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§

PacketType
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.