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

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

Summary

Types

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

Functions

@spec flush(t()) :: {binary(), t()}
@spec 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}