Attributes
SDP uses attributes to extend the core protocol. Attributes can appear within the Session or Media sections and are scoped accordingly as session-level or media-level. New attributes are added to the standard occasionally through registration with IANA.
Attributes take two forms:
- A property form:
a=flag
conveys a simple boolean property of the media or session. - A value form:
a=attribute:value
provides a named parameter.
Two of these attributes are specially defined:
a=charset:encoding
a=sdplang:code
The first one is used in the Sesssion or Media sections to specify another character encoding (as registered in the IANA registry) than the default one highly recommanded (UTF-8) where it is used in standard protocol keys whose values are containing a text intended to be displayed to a user. The second one is used to specify in which language it is written (alternate texts in multiple languages may be carried in the protocol, and selected automatically by the user agent according to user preferences. In both cases, each textual field in the protocol which are not interpreted symbolically by the protocol itself, will be interpreted as opaque strings, but rendered to the user or application with the values indicated in the last occurence of the charset
and sdplang
in the current Media section, or otherwise their last value in the Session section).
Note that the first 3 mandatory parameters (v=, s= and o=), even though they seem to contain displayable text, are not intended to be displayed to users and translated. The fields present in their values are considered in the protocol as opaque strings, they are used as identifiers, just like paths in an URL or filenames in a file system: the SDP standard indicates that they must all non empty and should be UTF-8 encoded.
A few other attributes (described as part the standard SDP specifications in the same RFC) are also shown in the example above, either as a session-level attribute (such as the attribute in property form a=recvonly
) which also applies to the described medias unless they override their value, or as a media-level attribute (such as the attribute in value form a=rtpmap:99 h263-1998/90000
for the video media in the example).
Read more about this topic: Session Description Protocol
Famous quotes containing the word attributes:
“The world of the egotist is, inevitably, a narrow world, and the boundaries of self are limited to the close horizon of personality.... But, within this horizon, there is room for many attributes that are excellent....”
—Ellen Glasgow (18731945)
“Why does not the kitten betray some of the attributes common to the adult puss? A puppy is but a dog, plus high spirits, and minus common sense. We never hear our friends say they love puppies, but cannot bear dogs. A kitten is a thing apart; and many people who lack the discriminating enthusiasm for cats, who regard these beautiful beasts with aversion and mistrust, are won over easily, and cajoled out of their prejudices, by the deceitful wiles of kittenhood.”
—Agnes Repplier (18581950)
“True and false are attributes of speech not of things. And where speech is not, there is neither truth nor falsehood. Error there may be, as when we expect that which shall not be; or suspect what has not been: but in neither case can a man be charged with untruth.”
—Thomas Hobbes (15881679)