View Source ExWebRTC.RTP.VP8Payload (ex_webrtc v0.1.0)

Defines VP8 payload structure stored in RTP packet payload.

Based on RFC 7741: RTP Payload Format for VP8 Video.

Summary

Functions

Parses RTP payload as VP8 payload.

Types

@type t() :: %ExWebRTC.RTP.VP8Payload{
  keyidx: non_neg_integer() | nil,
  n: 0 | 1,
  payload: binary(),
  picture_id: non_neg_integer() | nil,
  pid: non_neg_integer(),
  s: 0 | 1,
  tid: non_neg_integer() | nil,
  tl0picidx: non_neg_integer() | nil,
  y: 0 | 1 | nil
}

Functions

@spec parse(binary()) :: {:ok, t()} | {:error, :invalid_packet}

Parses RTP payload as VP8 payload.

@spec serialize(t()) :: binary()