public interface MediaDescription extends Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeField at)
Add Media Attribute based on an AttributeField value
|
void |
addDynamicPayloads(Vector payloadNames,
Vector payloadValues)
Adds dynamic media types to the description.
|
String |
getAttribute(String name)
Returns the value of the specified attribute.
|
Vector |
getAttributes(boolean create)
Returns the set of attributes for this Description as a Vector of Attribute objects in the order they were parsed.
|
int |
getBandwidth(String name)
Returns the integer value of the specified bandwidth name.
|
Vector |
getBandwidths(boolean create)
Returns the Bandwidth of the specified type.
|
Connection |
getConnection()
Returns the connection information associated with this object.
|
Info |
getInfo()
Returns value of the info field (i=) of this object.
|
Key |
getKey()
Returns the key data.
|
Media |
getMedia()
Return the Media field of the description.
|
Vector |
getMimeParameters()
Returns a Vector containing a string of parameters for each of the codecs in this description.
|
Vector |
getMimeTypes()
Returns a Vector containing a string indicating the MIME type for each of the codecs in this description.
|
Vector |
getPreconditionFields()
Get all Precondition Fields in the Media Descritpion
|
void |
removeAttribute(String name)
Removes the attribute specified by the value parameter.
|
void |
removeBandwidth(String name)
Removes the specified bandwidth type.
|
void |
setAttribute(String name,
String value)
Sets the value of the specified attribute
|
void |
setAttributes(Vector Attributes)
Adds the specified Attribute to this Description object.
|
void |
setBandwidth(String name,
int value)
Sets the value of the specified bandwidth type.
|
void |
setBandwidths(Vector bandwidths)
set the value of the Bandwidth with the specified type
|
void |
setConnection(Connection conn)
Set the connection data for this entity
|
void |
setInfo(Info i)
Sets the i= field of this object.
|
void |
setKey(Key key)
Sets encryption key information.
|
void |
setMedia(Media media)
Set the Media field of the description.
|
void |
setPreconditionFields(Vector segPrecondition)
Set PreconditionFields for the Media Description
|
void |
setPreconditions(PreconditionFields segPrecondition)
Set PreconditionFields for the Media Description
|
Media getMedia()
void setMedia(Media media) throws SdpException
media
- to setSdpException
- if the media field is nullInfo getInfo()
void setInfo(Info i) throws SdpException
i
- to setSdpException
- if the info is nullConnection getConnection()
void setConnection(Connection conn) throws SdpException
conn
- to setSdpException
- if the connexion is nullVector getBandwidths(boolean create)
create
- type of the Bandwidth to returnvoid setBandwidths(Vector bandwidths) throws SdpException
bandwidths
- type of the Bandwidth object whose value is requestedSdpException
- if vector is nullint getBandwidth(String name) throws SdpParseException
name
- the name of the bandwidth type.SdpParseException
void setBandwidth(String name, int value) throws SdpException
name
- the name of the bandwidth type.value
- the value of the named bandwidth type.SdpException
- if the name is nullvoid removeBandwidth(String name)
name
- the name of the bandwidth type.Key getKey()
void setKey(Key key) throws SdpException
key
- the encryption key data; depending on method may be nullSdpException
- if the key is nullVector getAttributes(boolean create)
create
- specifies whether to return null or a new empty Vector in case no attributes exists for this Descriptionvoid setAttributes(Vector Attributes) throws SdpException
Attributes
- the attribute to addSdpException
- if the attribute is nullString getAttribute(String name) throws SdpParseException
name
- the name of the attribute.SdpParseException
void setAttribute(String name, String value) throws SdpException
name
- the name of the attribute.value
- the value of the named attribute.SdpException
- if the parameters are nullvoid removeAttribute(String name)
name
- the name of the attribute.Vector getMimeTypes() throws SdpException
SdpException
- if there is a problem extracting the parameters.Vector getMimeParameters() throws SdpException
SdpException
- if there is a problem extracting the parameters.void addDynamicPayloads(Vector payloadNames, Vector payloadValues) throws SdpException
payloadNames
- a Vector of String - each one the name of a dynamic payload to be added (usually an integer larger
than SdpConstants.AVP_DYNAMIC_MIN).payloadValues
- a Vector of String - each contains the value describing the correlated dynamic payloads to be addedSdpException
- if either vector is null or empty.
if the vector sizes are unequal.void setPreconditionFields(Vector segPrecondition) throws SdpException
Set PreconditionFields for the Media Description
issued by Miguel Freitas (IT) PTInovacaosegPrecondition
- Vector with values to serSdpException
void setPreconditions(PreconditionFields segPrecondition)
Set PreconditionFields for the Media Description
issued by Miguel Freitas (IT) PTInovacaosegPrecondition
- PreconditionFields with values to setVector getPreconditionFields()
Get all Precondition Fields in the Media Descritpion
issued by Miguel Freitas (IT) PTInovacaovoid addAttribute(AttributeField at)
Add Media Attribute based on an AttributeField value
issued by Miguel Freitas (IT) PTInovacaoat
- AttributeFieldCopyright © 2016. All Rights Reserved.