Skip to main content

classify_rtp_rtcp_mux

Function classify_rtp_rtcp_mux 

Source
pub fn classify_rtp_rtcp_mux(packet: &[u8]) -> Option<RtpRtcpMuxPacketKind>
Expand description

Classifies an RTP or RTCP candidate in an RTP/RTCP muxed datagram.

The packet must contain the first two header octets plus one body octet, matching the minimum boundary used before complete RTP or RTCP parsing.

Reference: https://www.rfc-editor.org/rfc/rfc5761.html#section-4