Method Summary |
|
public void | addAttribute(AttributeField at) |
public void | addDynamicPayloads(Vector payloadNames, Vector payloadValues) Adds dynamic media types to the description. |
public String | getAttribute(String name) Returns the value of the specified attribute. |
public Vector | getAttributes(boolean create) Returns the set of attributes for this Description as a Vector of Attribute objects in the order they were parsed. |
public int | getBandwidth(String name) Returns the integer value of the specified bandwidth name. |
public Vector | getBandwidths(boolean create) Returns the Bandwidth of the specified type. |
public Connection | getConnection() Returns the connection information associated with this object. |
public Info | getInfo() Returns value of the info field (i=) of this object. |
public Key | getKey() Returns the key data. |
public Media | getMedia() Return the Media field of the description. |
public Vector | getMimeParameters() 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. |
public Vector | getMimeTypes() 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. |
public Vector | getPreconditionFields() |
public void | removeAttribute(String name) Removes the attribute specified by the value parameter. |
public void | removeBandwidth(String name) Removes the specified bandwidth type. |
public void | setAttribute(String name, String value) |
public void | setAttributes(Vector Attributes) Adds the specified Attribute to this Description object. |
public void | setBandwidth(String name, int value) Sets the value of the specified bandwidth type. |
public void | setBandwidths(Vector bandwidths) |
public void | setConnection(Connection conn) |
public void | setInfo(Info i) Sets the i= field of this object. |
public void | setKey(Key key) Sets encryption key information. |
public void | setMedia(Media media) Set the Media field of the description. |
public void | setPreconditionFields(Vector segPrecondition) |
public void | setPreconditions(PreconditionFields segPrecondition) |