pub fn demux(pkt: &[u8]) -> Demuxed<'_>
Expand description
Demultiplexes combined RTP and RTCP streams.
This is subject to the profile restrictions under RFC 5761,
which restricts the set of allowed payload types. In particular,
this implementation returns an RtcpPacket
if its packet type matches any known RTCP packet type.
Returns None
if the pkt
is too short (less than 2 bytes).