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, getTypeCharString getMediaType() throws SdpParseException
SdpParseExceptionvoid setMediaType(String mediaType) throws SdpException
mediaType - to setSdpException - if mediaType is nullint getMediaPort()
throws SdpParseException
SdpParseExceptionvoid setMediaPort(int port)
throws SdpException
port - to setSdpExceptionint getPortCount()
throws SdpParseException
SdpParseExceptionvoid setPortCount(int portCount)
throws SdpException
portCount - portCount - the integer port count.SdpExceptionString getProtocol() throws SdpParseException
SdpParseExceptionvoid 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 setSdpExceptionSdpParseExceptionvoid setMediaFormats(Vector mediaFormats) throws SdpException
mediaFormats - the format to add.SdpException - if the vector is nullCopyright © 2018. All Rights Reserved.