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. Both marker-bit values for payload types 64 through 95 select RTCP. This candidate check does not validate complete datagram framing.

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