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, int[] rtpPayloadTypeNumbers) | |
Initializes a new instance of the fm.liveswitch.sdp.rtp.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... | |
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 String | generateRtpProfile (fm.liveswitch.StreamType type, boolean rtcpFeedbackSupported, boolean useDtls, boolean useEncryption) |
Generates Rtp Prfile for a given combination of stream type, whjether or not RTCP-based feedback is supported, whether (D)TLS is in use and whether encryption is in use in general. More... | |
static int[] | getPayloadTypes (String formatDesciption) |
Gets the payload types. More... | |
static String | getRtpAvpfTransportProtocol () |
Gets the protocol keyword for the extended RTP audio/video profile. More... | |
static String | getRtpAvpTransportProtocol () |
Gets the protocol keyword for the RTP audio/video profile. More... | |
static String | getRtpSavpfTransportProtocol () |
Gets the protocol keyword for the extended Secure RTP audio/video profile. More... | |
static String | getRtpSavpTransportProtocol () |
Gets the protocol keyword for the Secure RTP audio/video profile. More... | |
static String | getUdpTlsRtpSavpfTransportProtocol () |
Gets the protocol keyword for the extended Secure RTP audio/video profile with DTLS key exchange. More... | |
static String | getUdpTlsRtpSavpTransportProtocol () |
Gets the protocol keyword for the Secure RTP audio/video profile with DTLS key exchange. More... | |
static int | getWellKnownPayloadClockRate (int payloadType) |
Returns the clockrate of a well-known payload type. More... | |
static String | getWellKnownPayloadName (int payloadType) |
Returns the name of a well-known payload type. More... | |
static boolean | supportsEncryption (String protocol) |
Returns a value indicating whther a given protocol supports encryption. More... | |
static boolean | supportsRtcpBasedFeedback (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... | |
An SDP media description with a transport protocol of "RTP/AVP" or "RTP/SAVP".
fm.liveswitch.sdp.rtp.Media.Media | ( | String | mediaType, |
int | transportPort, | ||
String | transportProtocol, | ||
int[] | rtpPayloadTypeNumbers | ||
) |
Initializes a new instance of the fm.liveswitch.sdp.rtp.Media class.
mediaType | The media type. See fm.liveswitch.sdp.MediaType for possible values. |
transportPort | The transport port. |
transportProtocol | The transport protocol. |
rtpPayloadTypeNumbers | The RTP payload type numbers. |
|
static |
Generates Rtp Prfile for a given combination of stream type, whjether or not RTCP-based feedback is supported, whether (D)TLS is in use and whether encryption is in use in general.
type | Stream type. |
rtcpFeedbackSupported | Indicates whether Rtcp-based feedback is supported. |
useDtls | Indicates whether (D)TLS is in use. |
useEncryption | Indicates whether encryption is in use. |
|
static |
Gets the payload types.
formatDesciption | The media format desciption. |
|
static |
Gets the protocol keyword for the extended RTP audio/video profile.
|
static |
Gets the protocol keyword for the RTP audio/video profile.
|
static |
Gets the protocol keyword for the extended Secure RTP audio/video profile.
|
static |
Gets the protocol keyword for the Secure RTP audio/video profile.
|
static |
Gets the protocol keyword for the extended Secure RTP audio/video profile with DTLS key exchange.
|
static |
Gets the protocol keyword for the Secure RTP audio/video profile with DTLS key exchange.
|
static |
Returns the clockrate of a well-known payload type.
payloadType | The well-known payload type to get the clockrate of. |
|
static |
Returns the name of a well-known payload type.
payloadType | The well-known payload type to get the name of. |
|
static |
Returns a value indicating whther a given protocol supports encryption.
protocol | Protocol keyword. |
|
static |
Returns a value indicating whther a given protocol supports encryption.
protocol | Protocol keyword. |