Expand description
RTP packets (RFC 3550 §5.1).
The header is twelve fixed bytes plus optional contributing sources and an optional extension, and the whole of it is bit-packed. Every field here has been the cause of a decoder reading someone else’s audio as its own, so each is parsed explicitly rather than by casting a struct over the buffer.
Structs§
- Packet
- An RTP packet.
Enums§
- RtpError
- What can go wrong reading a packet.
Constants§
- HEADER_
LEN - The fixed header size, before CSRCs or extensions.
Functions§
- sequence_
distance - The forward distance from one sequence number to another, across the wrap.
- sequence_
is_ newer - Compare two sequence numbers across the 16-bit wrap.