fm.liveswitch.sdp.sctp.Media Class Reference

An SDP media description with a transport protocol of "RTP/AVP" or "RTP/SAVP". More...

Public Member Functions

 Media (String mediaType, int transportPort, String transportProtocol, String associationUsage)
 Initializes a new instance of the fm.liveswitch.sdp.sctp.Media class. More...
 
- Public Member Functions inherited from fm.liveswitch.sdp.Media
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...
 
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 String getDtlsSctpTransportProtocol ()
 Gets the protocol keyword for the SCTP over DTLS data profile. More...
 
static String getSctpDtlsTransportProtocol ()
 Gets the protocol keyword for the DTLS over SCTP data profile. More...
 
static String getSctpTransportProtocol ()
 Gets the protocol keyword for the SCTP data profile. More...
 
static String getTcpDtlsSctpTransportProtocol ()
 Gets the protocol keyword for the SCTP over DTLS over TCP data profile. More...
 
static String getUdpDtlsSctpTransportProtocol ()
 Gets the protocol keyword for the SCTP over DTLS over UDP data profile. More...
 
static String getWebRtcDatachannelAssociationUsage ()
 Gets the Association Usage name registry for WebRTC Datachannel. More...
 
static boolean isSupported (String protocol)
 Returns a value indicating whther a given protocol is supported. More...
 
static boolean supportsEncryption (String protocol)
 Returns a value indicating whther a given protocol supports encryption. More...
 
- Static Public Member Functions inherited from fm.liveswitch.sdp.Media
static fm.liveswitch.sdp.Media parse (String s)
 Creates an fm.liveswitch.sdp.Media instance from a string. More...
 

Detailed Description

An SDP media description with a transport protocol of "RTP/AVP" or "RTP/SAVP".

Constructor & Destructor Documentation

◆ Media()

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

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

Parameters
mediaTypeThe media type. See fm.liveswitch.sdp.MediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.
associationUsageThe association usage.

Reimplemented from fm.liveswitch.sdp.Media.

Member Function Documentation

◆ getDtlsSctpTransportProtocol()

static String fm.liveswitch.sdp.sctp.Media.getDtlsSctpTransportProtocol ( )
static

Gets the protocol keyword for the SCTP over DTLS data profile.

◆ getSctpDtlsTransportProtocol()

static String fm.liveswitch.sdp.sctp.Media.getSctpDtlsTransportProtocol ( )
static

Gets the protocol keyword for the DTLS over SCTP data profile.

◆ getSctpTransportProtocol()

static String fm.liveswitch.sdp.sctp.Media.getSctpTransportProtocol ( )
static

Gets the protocol keyword for the SCTP data profile.

◆ getTcpDtlsSctpTransportProtocol()

static String fm.liveswitch.sdp.sctp.Media.getTcpDtlsSctpTransportProtocol ( )
static

Gets the protocol keyword for the SCTP over DTLS over TCP data profile.

◆ getUdpDtlsSctpTransportProtocol()

static String fm.liveswitch.sdp.sctp.Media.getUdpDtlsSctpTransportProtocol ( )
static

Gets the protocol keyword for the SCTP over DTLS over UDP data profile.

◆ getWebRtcDatachannelAssociationUsage()

static String fm.liveswitch.sdp.sctp.Media.getWebRtcDatachannelAssociationUsage ( )
static

Gets the Association Usage name registry for WebRTC Datachannel.

◆ isSupported()

static boolean fm.liveswitch.sdp.sctp.Media.isSupported ( String  protocol)
static

Returns a value indicating whther a given protocol is supported.

Parameters
protocolProtocol keyword.
Returns
Value indicating whther a given protocol is supported.

◆ supportsEncryption()

static boolean fm.liveswitch.sdp.sctp.Media.supportsEncryption ( String  protocol)
static

Returns a value indicating whther a given protocol supports encryption.

Parameters
protocolProtocol keyword.
Returns
Value indicating whther a given protocol supports encryption.