ExSDP.Attribute (ExSDP v0.4.0) View Source

This module represents Attributes fields of SDP.

Link to this section Summary

Functions

Parses SDP Attribute line.

Link to this section Types

Specs

cat() :: {:cat, binary()}

Specs

charset() :: {:charset, binary()}

Specs

fingerprint() :: {:fingerprint, {hash_function(), binary()}}

Specs

flag_attributes() ::
  :rtcp_rsize | :rtcp_mux | :inactive | :sendonly | :sendrecv | :recvonly

Specs

framerate() :: {:framerate, framerate_value()}

Specs

framerate_value() :: float() | {integer(), integer()}

Specs

hash_function() :: :sha1 | :sha224 | :sha256 | :sha384 | :sha512

Specs

ice_options() :: {:ice_options, binary() | [binary()]}

Specs

ice_pwd() :: {:ice_pwd, binary()}

Specs

ice_ufrag() :: {:ice_ufrag, binary()}

Specs

keywds() :: {:keywds, binary()}

Specs

lang() :: {:lang, binary()}

Specs

maxptime() :: {:maxptime, non_neg_integer()}

Specs

mid() :: {:mid, binary()}

Specs

orient() :: {:orient, orient_value()}

Specs

orient_value() :: :portrait | :landscape | :seascape

Specs

ptime() :: {:ptime, non_neg_integer()}

Specs

quality() :: {:quality, non_neg_integer()}

Specs

sdplang() :: {:sdplang, binary()}

Specs

setup() :: {:setup, setup_value()}

Specs

setup_value() :: :active | :passive | :actpass | :holdconn

Specs

Specs

tool() :: {:tool, binary()}

Specs

type() :: {:type, type_value()}

Specs

type_value() :: :broadcast | :meeting | :moderated | :test | :H332

Link to this section Functions

Specs

parse(binary(), opts :: Keyword.t()) :: {:ok, t()} | {:error, atom()}

Parses SDP Attribute line.

line is a string in form of a=attribute or a=attribute:value. opts is a keyword list that can contain some information for parsers.

Unknown attributes keys are returned as strings, known ones as atoms. For known attributes please refer to t().