public interface Media extends Field
Modifier and Type | Method and Description |
---|---|
Vector |
getMediaFormats(boolean create)
Returns an Vector of the media formats supported by this description.
|
int |
getMediaPort()
Returns the port of the media defined by this description
|
String |
getMediaType()
Returns the type (audio,video etc) of the media defined by this description.
|
int |
getPortCount()
Returns the number of ports associated with this media description
|
String |
getProtocol()
Returns the protocol over which this media should be transmitted.
|
void |
setMediaFormats(Vector mediaFormats)
Adds a media format to the media description.
|
void |
setMediaPort(int port)
Sets the port of the media defined by this description
|
void |
setMediaType(String mediaType)
Sets the type (audio,video etc) of the media defined by this description.
|
void |
setPortCount(int portCount)
Sets the number of ports associated with this media description.
|
void |
setProtocol(String protocol)
Sets the protocol over which this media should be transmitted.
|
String |
toString()
Generates a string description of this object.
|
clone, getTypeChar
String getMediaType() throws SdpParseException
SdpParseException
void setMediaType(String mediaType) throws SdpException
mediaType
- to setSdpException
- if mediaType is nullint getMediaPort() throws SdpParseException
SdpParseException
void setMediaPort(int port) throws SdpException
port
- to setSdpException
int getPortCount() throws SdpParseException
SdpParseException
void setPortCount(int portCount) throws SdpException
portCount
- portCount - the integer port count.SdpException
String getProtocol() throws SdpParseException
SdpParseException
void setProtocol(String protocol) throws SdpException
protocol
- - the String protocol, e.g. RTP/AVP.SdpException
- if the protocol is nullVector getMediaFormats(boolean create) throws SdpParseException
create
- to setSdpException
SdpParseException
void setMediaFormats(Vector mediaFormats) throws SdpException
mediaFormats
- the format to add.SdpException
- if the vector is nullCopyright © 2018. All Rights Reserved.