pub struct RtpHeader {
pub version: u8,
pub has_padding: bool,
pub has_extension: bool,
pub marker: bool,
pub payload_type: Pt,
pub sequence_number: u16,
pub timestamp: u32,
pub ssrc: Ssrc,
pub ext_vals: ExtensionValues,
pub header_len: usize,
}
Expand description
Parsed header from an RTP packet.
Fields§
§version: u8
Always 2
has_padding: bool
Whether the RTP packet has padding to be an equal of 4 bytes.
has_extension: bool
RTP packet has “RTP header extensions”.
marker: bool
A marker indicates the end of a series of packets belonging together such as for a single video frame.
payload_type: Pt
Type of payload being carried. What this correlates to is sent in the SDP.
sequence_number: u16
Sequence number increasing by 1 for each RTP packet.
timestamp: u32
Timestamp in media time for the RTP packet. What the media time base is depends on the codec.
ssrc: Ssrc
Sender source identifier.
ext_vals: ExtensionValues
The extension values parsed using the mapping via SDP.
header_len: usize
Length of header.