pub struct RtpHeader {
pub payload_type: u8,
pub marker: bool,
pub sequence: u16,
pub timestamp: u32,
pub ssrc: u32,
pub payload_offset: usize,
}Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
A parsed RTP fixed header (RFC 3550 §5.1).
Fields§
§payload_type: u8Payload type (7 bits) — identifies the codec/format binding from SDP.
marker: boolMarker bit. For H.264 it flags the last packet of an access unit.
sequence: u1616-bit sequence number, increments by one per packet (wraps).
timestamp: u3232-bit media timestamp in the payload’s clock (90 kHz for H.264 video).
ssrc: u32Synchronization source identifier.
payload_offset: usizeByte offset at which the payload begins (past CSRCs and any extension).
Implementations§
Trait Implementations§
impl Copy for RtpHeader
impl Eq for RtpHeader
impl StructuralPartialEq for RtpHeader
Auto Trait Implementations§
impl Freeze for RtpHeader
impl RefUnwindSafe for RtpHeader
impl Send for RtpHeader
impl Sync for RtpHeader
impl Unpin for RtpHeader
impl UnsafeUnpin for RtpHeader
impl UnwindSafe for RtpHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more