Skip to main content

is_rtcp

Function is_rtcp 

Source
pub fn is_rtcp(buf: &[u8]) -> bool
Expand description

Returns true if buf is RTCP rather than RTP.

Distinguished by the payload-type byte: RTCP packet types occupy [192, 223], which RTP cannot use. Returns false for buffers too short to tell.