View Source Membrane.RTCP.Header (Membrane RTP plugin v0.16.0)

Struct describing 32-bit header common to all RTCP packets

Link to this section Summary

Link to this section Types

@type packet_specific_t() :: non_neg_integer()
@type packet_type_t() :: 200..206
@type t() :: %Membrane.RTCP.Header{
  packet_specific: packet_specific_t(),
  packet_type: packet_type_t()
}

Link to this section Functions

@spec parse(binary()) ::
  {:ok, %{header: t(), padding?: boolean(), body_size: pos_integer()}} | :error
@spec serialize(t(), body_size: pos_integer(), padding?: boolean()) :: binary()