View Source ExRTCP.CompoundPacket (ex_rtcp v0.4.0)
Functionalities for decoding and encoding compound RTCP packets.
Summary
Functions
Decodes compound RTCP packet.
Encodes the packets as a compound packet and returns the resulting binary.
Functions
@spec decode(binary()) :: {:ok, [ExRTCP.Packet.packet()]} | {:error, ExRTCP.Packet.decode_error()}
Decodes compound RTCP packet.
@spec encode([ExRTCP.Packet.packet()], [{:padding, ExRTCP.Packet.uint8()}]) :: binary()
Encodes the packets as a compound packet and returns the resulting binary.
Options:
padding
- number of padding bytes added to the last packet, must fulfill the same conditions as inExRTCP.Packet.encode/2