View Source ExRTCP.CompoundPacket (ex_rtcp v0.2.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.

Link to this function

encode(packets, opts \\ [])

View Source
@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 in ExRTCP.Packet.encode/2