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()
View Source
flag_attributes() :: :inactive | :sendonly | :sendrecv | :recvonly
flag_attributes() :: :inactive | :sendonly | :sendrecv | :recvonly
Link to this type
numeric_attributes()
View Source
numeric_attributes()
View Source
numeric_attributes() :: :quality | :ptime | :maxptime
numeric_attributes() :: :quality | :ptime | :maxptime
Link to this type
t()
View Source
t()
View Source
t() ::
binary()
| flag_attributes()
| {binary() | value_attributes() | numeric_attributes() | :framerate,
binary()}
t() :: binary() | flag_attributes() | {binary() | value_attributes() | numeric_attributes() | :framerate, binary()}
Link to this type
value_attributes()
View Source
value_attributes()
View Source
value_attributes() ::
:type
| :tool
| :sdplang
| :rtpmap
| :lang
| :orient
| :keywds
| :charset
| :cat
value_attributes() :: :type | :tool | :sdplang | :rtpmap | :lang | :orient | :keywds | :charset | :cat
Link to this section Functions
Link to this function
parse(line) View Source
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