Membrane Protocol SDP v0.1.1 Membrane.Protocol.SDP.Attribute View Source

This module is responsible for parsing SDP Attributes.

Link to this section Summary

Link to this section Types

Link to this type

flag_attributes() View Source
flag_attributes() :: :inactive | :sendonly | :sendrecv | :recvonly

Link to this type

numeric_attributes() View Source
numeric_attributes() :: :quality | :ptime | :maxptime

Link to this type

value_attributes() View Source
value_attributes() ::
  :type
  | :tool
  | :sdplang
  | :rtpmap
  | :lang
  | :orient
  | :keywds
  | :charset
  | :cat

Link to this section Functions

Link to this function

parse(line) View Source
parse(binary()) :: {:ok, t()} | {:error, atom()}

Parses SDP Attribute.

value_attributes/0 and numeric_attributes/0 formatted as name:value are be parsed as {name, value} other values are treated as flag_attributes/0. Known attribute names are converted into atoms.

Link to this function

parse_media_attribute(other, media) View Source
parse_media_attribute(
  {binary() | atom(), binary()},
  atom() | binary()
) :: {:error, :invalid_attribute} | {:ok, {atom(), any()}}