Adds dynamic media types to the description.
Parameters: payloadNames - a Vector of String - each one the name of a dynamic payload to be added (usually an integer largerthan SdpConstants.AVP_DYNAMIC_MIN). Parameters: payloadValues - a Vector of String - each contains the value describing the correlated dynamic payloads to be added throws: SdpException - if either vector is null or empty.if the vector sizes are unequal.
Returns the value of the specified attribute.
Parameters: name - the name of the attribute. throws: SdpParseException - the value of the named attribute
Returns the set of attributes for this Description as a
Vector of Attribute objects in the order they were parsed.
Parameters: create - specifies whether to return null or a new empty Vector in caseno attributes exists for this Description attributes for this Description
Returns the integer value of the specified bandwidth name.
Parameters: name - the name of the bandwidth type. throws: SdpParseException - if a parsing error occurs the value of the named bandwidth
Returns the connection information associated with this object. This may
be null for SessionDescriptions if all Media
objects have a connection object and may be null for Media
objects if the corresponding session connection is non-null.
connection
Returns a Vector containing a string of parameters for each of
the codecs in this description.
A parameter string is computed for each codec.
The parameter string is computed in the following fashion.
The rate is extracted from the rtpmap or static data.
The number of channels is extracted from the rtpmap or static data.
The ptime is extracted from the ptime attribute.
The maxptime is extracted from the maxptime attribute.
Any additional parameters are extracted from the ftmp attribute.
throws: SdpException - if there is a problem extracting the parameters. a Vector containing a string of parameters for each of the codecs in this description.
Returns a Vector containing a string indicating the MIME type
for each of the codecs in this description.
A MIME value is computed for each codec in the media description.
The MIME type is computed in the following fashion:
The type is the mediaType from the media field.
The subType is determined by the protocol.
The result is computed as the string of the form:
type + '/' + subType
The subType portion is computed in the following fashion.
RTP/AVP
the subType is returned as the codec name. This will either
be extracted from the rtpmap attribute or computed.
other
the protocol is returned as the subType.
If the protocol is RTP/AVP and the rtpmap attribute for a
codec is absent, then the codec name will be computed in the
following fashion.
String indexed in table SdpConstants.avpTypeNames
if the value is an int greater than or equal to 0 and less than
AVP_DEFINED_STATIC_MAX, and has been assigned a
value.
SdpConstant.RESERVED
if the value is an int greater than or equal to 0 and less than
AVP_DEFINED_STATIC_MAX, and has not been
assigned a value.
SdpConstant.UNASSIGNED
An int greater than or equal to AVP_DEFINED_STATIC_MAX
and less than
AVP_DYNAMIC_MIN - currently
unassigned.
SdpConstant.DYNAMIC
Any int less than 0 or greater than or equal to AVP_DYNAMIC_MIN
throws: SdpException - if there is a problem extracting the parameters. a Vector containing a string indicating the MIME type for each of the codecs in this description
Sets the value of the specified attribute
Parameters: name - the name of the attribute. Parameters: value - the value of the named attribute. throws: SdpException - if the parameters are null
Adds the specified Attribute to this Description object.
Parameters: attributes - the attribute to add throws: SdpException - if the attributes is null
Sets the value of the specified bandwidth type.
Parameters: name - the name of the bandwidth type. Parameters: value - the value of the named bandwidth type. throws: SdpException - if the name is null
Sets the value of the Bandwidth with the specified type.
Parameters: bandwidths - type of the Bandwidth object whose value is requested throws: SdpException - if vector is null
Sets encryption key information. This consists of a method and an
encryption key included inline.
Parameters: key - the encryption key data; depending on method may be null throws: SdpException - if the key is null