Membrane.RTP.Packet (Membrane RTP plugin v0.6.1) View Source

Defines a struct describing an RTP packet and a way to parse and serialize it. Based on RFC3550

Link to this section Summary

Link to this section Types


t() :: %Membrane.RTP.Packet{header: Membrane.RTP.Header.t(), payload: binary()}

Link to this section Functions


parse(binary()) :: {:ok, t()} | {:error, :wrong_version | :malformed_packet}
Link to this function

serialize(packet, list \\ [align_to: 1])

View Source


serialize(t(), [{:align_to, pos_integer()}]) :: binary()