Membrane.RTP.VP8.Frame (Membrane RTP VP8 Plugin v0.2.0) View Source

Module resposible for accumulating data from RTP packets into VP8 frames Implements loosely algorithm described here: https://tools.ietf.org/html/rfc7741#section-4.5

Link to this section Summary

Link to this section Types

Specs

t() :: %Membrane.RTP.VP8.Frame{
  fragments: [binary()],
  last_seq_num: nil | Membrane.RTP.VP8.Depayloader.sequence_number(),
  last_timestamp: nil | non_neg_integer()
}

Link to this section Functions

Specs

flush(t()) :: {binary(), t()}

Specs

parse(Membrane.Buffer.t(), t()) ::
  {:ok, binary(), t()}
  | {:ok, :incomplete, t()}
  | {:error,
     :packet_malformed
     | :invalid_first_packet
     | :not_rtp_buffer
     | :missing_packet
     | :timestamps_not_equal}