parse

Function parse 

Source
pub fn parse(datagram: &[u8]) -> Option<RtpPacket>
Expand description

Parse an RTP packet, tolerating padding, CSRC entries, and a header extension. Returns None for datagrams that are not well-formed RTP v2 — a media port sees stray traffic (STUN probes, scans); dropping quietly is the correct posture.