Skip to main content

Module packet

Module packet 

Source
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.