|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Media
A Media represents an m= field contained within a MediaDescription. The Media identifies information about the format(s) of the media associated with the MediaDescription. The Media field includes: a mediaType (e.g. audio, video, etc.) a port number (or set of ports) a protocol to be used (e.g. RTP/AVP) a set of media formats which correspond to Attributes associated with the media description. Here is an example: m=audio 60000 RTP/AVP 0 a=rtpmap:0 PCMU/8000 This example identifies that the client can receive audio on port 60000 in format 0 which corresponds to PCMU/8000. Please refer to IETF RFC 2327 for a description of SDP.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.lastbamboo.common.sdp.api.Field |
|---|
clone, getTypeChar |
| Method Detail |
|---|
String getMediaType()
throws SdpParseException
SdpParseException
void setMediaType(String mediaType)
throws SdpException
mediaType - to set
SdpException - if mediaType is null
int getMediaPort()
throws SdpParseException
SdpParseException
void setMediaPort(int port)
throws SdpException
port - to set
SdpException
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 null
Vector getMediaFormats(boolean create)
throws SdpParseException
create - to set
SdpException
SdpParseException
void setMediaFormats(Vector mediaFormats)
throws SdpException
mediaFormats - the format to add.
SdpException - if the vector is nullString toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||