fm.liveswitch.sdp.Media Class Reference

An SDP media element. More...

Public Member Functions

String getFormatDescription ()
 Gets the format description. More...
 
String getMediaType ()
 Gets the media type. More...
 
short getNumberOfPorts ()
 Gets the number of ports. More...
 
int getTransportPort ()
 Gets the transport port. More...
 
String getTransportProtocol ()
 Gets the transport protocol. More...
 
 Media ()
 Initializes a new instance of the fm.liveswitch.sdp.Media class. More...
 
 Media (String mediaType, int transportPort, String transportProtocol)
 Initializes a new instance of the fm.liveswitch.sdp.Media class. More...
 
 Media (String mediaType, int transportPort, String transportProtocol, String formatDescription)
 Initializes a new instance of the fm.liveswitch.sdp.Media class. More...
 
void setFormatDescription (String value)
 Sets the format description. More...
 
void setMediaType (String value)
 Sets the media type. More...
 
void setNumberOfPorts (short value)
 Sets the number of ports. More...
 
void setTransportPort (int value)
 Sets the transport port. More...
 
void setTransportProtocol (String value)
 Sets the transport protocol. More...
 
String toString ()
 Converts this instance to a string. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.Media parse (String s)
 Creates an fm.liveswitch.sdp.Media instance from a string. More...
 

Detailed Description

An SDP media element.

Constructor & Destructor Documentation

◆ Media() [1/3]

fm.liveswitch.sdp.Media.Media ( )

Initializes a new instance of the fm.liveswitch.sdp.Media class.

◆ Media() [2/3]

fm.liveswitch.sdp.Media.Media ( String  mediaType,
int  transportPort,
String  transportProtocol 
)

Initializes a new instance of the fm.liveswitch.sdp.Media class.

Parameters
mediaTypeThe media type. See fm.liveswitch.sdp.Media#getMediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.

◆ Media() [3/3]

fm.liveswitch.sdp.Media.Media ( String  mediaType,
int  transportPort,
String  transportProtocol,
String  formatDescription 
)

Initializes a new instance of the fm.liveswitch.sdp.Media class.

Parameters
mediaTypeThe media type. See fm.liveswitch.sdp.Media#getMediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.
formatDescriptionThe format description.

Reimplemented in fm.liveswitch.sdp.sctp.Media.

Member Function Documentation

◆ getFormatDescription()

String fm.liveswitch.sdp.Media.getFormatDescription ( )

Gets the format description.

◆ getMediaType()

String fm.liveswitch.sdp.Media.getMediaType ( )

Gets the media type.

See fm.liveswitch.sdp.Media#getMediaType for possible values.

◆ getNumberOfPorts()

short fm.liveswitch.sdp.Media.getNumberOfPorts ( )

Gets the number of ports.

◆ getTransportPort()

int fm.liveswitch.sdp.Media.getTransportPort ( )

Gets the transport port.

◆ getTransportProtocol()

String fm.liveswitch.sdp.Media.getTransportProtocol ( )

Gets the transport protocol.

◆ parse()

static fm.liveswitch.sdp.Media fm.liveswitch.sdp.Media.parse ( String  s)
static

Creates an fm.liveswitch.sdp.Media instance from a string.

Parameters
sThe string to parse.

◆ setFormatDescription()

void fm.liveswitch.sdp.Media.setFormatDescription ( String  value)

Sets the format description.

◆ setMediaType()

void fm.liveswitch.sdp.Media.setMediaType ( String  value)

Sets the media type.

See fm.liveswitch.sdp.Media#getMediaType for possible values.

◆ setNumberOfPorts()

void fm.liveswitch.sdp.Media.setNumberOfPorts ( short  value)

Sets the number of ports.

◆ setTransportPort()

void fm.liveswitch.sdp.Media.setTransportPort ( int  value)

Sets the transport port.

◆ setTransportProtocol()

void fm.liveswitch.sdp.Media.setTransportProtocol ( String  value)

Sets the transport protocol.

◆ toString()

String fm.liveswitch.sdp.Media.toString ( )

Converts this instance to a string.