View Source Membrane.RTCP.ReportPacketBlock (Membrane RTP plugin v0.21.0)

Parses and constructs report blocks, which are parts of RTCP Sender and Receiver Reports defined in RFC3550

Link to this section Summary

Link to this section Types

@type t() :: %Membrane.RTCP.ReportPacketBlock{
  delay_since_sr: non_neg_integer(),
  fraction_lost: float(),
  highest_seq_num: non_neg_integer(),
  interarrival_jitter: non_neg_integer(),
  last_sr_timestamp: non_neg_integer(),
  ssrc: non_neg_integer(),
  total_lost: non_neg_integer()
}

Link to this section Functions

@spec decode(binary()) :: {:ok, [t()]} | {:error, :invalid_report_block}
@spec encode(t()) :: binary()