FMLiveSwitchSdpRtpMedia Class Reference

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

Instance Methods

(instancetype) - initWithMediaType:transportPort:transportProtocol:rtpPayloadTypeNumbers:
 Initializes a new instance of the FMLiveSwitchSdpRtpMedia class. More...
 
- Instance Methods inherited from FMLiveSwitchSdpMedia
(NSString *) - description
 Converts this instance to a string. More...
 
(NSString *) - formatDescription
 Gets the format description. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(instancetype) - initWithMediaType:transportPort:transportProtocol:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(instancetype) - initWithMediaType:transportPort:transportProtocol:formatDescription:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(NSString *) - mediaType
 Gets the media type. More...
 
(short) - numberOfPorts
 Gets the number of ports. More...
 
(void) - setFormatDescription:
 Sets the format description. More...
 
(void) - setMediaType:
 Sets the media type. More...
 
(void) - setNumberOfPorts:
 Sets the number of ports. More...
 
(void) - setTransportPort:
 Sets the transport port. More...
 
(void) - setTransportProtocol:
 Sets the transport protocol. More...
 
(int) - transportPort
 Gets the transport port. More...
 
(NSString *) - transportProtocol
 Gets the transport protocol. More...
 

Class Methods

(NSString *) + generateRtpProfileWithType:rtcpFeedbackSupported:useDtls: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...
 
(NSMutableArray *) + getPayloadTypesWithFormatDesciption:
 Gets the payload types. More...
 
(int) + getWellKnownPayloadClockRateWithPayloadType:
 Returns the clockrate of a well-known payload type. More...
 
(NSString *) + getWellKnownPayloadNameWithPayloadType:
 Returns the name of a well-known payload type. More...
 
(FMLiveSwitchSdpRtpMedia *) + mediaWithMediaType:transportPort:transportProtocol:rtpPayloadTypeNumbers:
 Initializes a new instance of the FMLiveSwitchSdpRtpMedia class. More...
 
(NSString *) + rtpAvpfTransportProtocol
 Gets the protocol keyword for the extended RTP audio/video profile. More...
 
(NSString *) + rtpAvpTransportProtocol
 Gets the protocol keyword for the RTP audio/video profile. More...
 
(NSString *) + rtpSavpfTransportProtocol
 Gets the protocol keyword for the extended Secure RTP audio/video profile. More...
 
(NSString *) + rtpSavpTransportProtocol
 Gets the protocol keyword for the Secure RTP audio/video profile. More...
 
(bool) + supportsEncryptionWithProtocol:
 Returns a value indicating whther a given protocol supports encryption. More...
 
(bool) + supportsRtcpBasedFeedbackWithProtocol:
 Returns a value indicating whther a given protocol supports encryption. More...
 
(NSString *) + udpTlsRtpSavpfTransportProtocol
 Gets the protocol keyword for the extended Secure RTP audio/video profile with DTLS key exchange. More...
 
(NSString *) + udpTlsRtpSavpTransportProtocol
 Gets the protocol keyword for the Secure RTP audio/video profile with DTLS key exchange. More...
 
- Class Methods inherited from FMLiveSwitchSdpMedia
(FMLiveSwitchSdpMedia *) + media
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(FMLiveSwitchSdpMedia *) + mediaWithMediaType:transportPort:transportProtocol:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(FMLiveSwitchSdpMedia *) + mediaWithMediaType:transportPort:transportProtocol:formatDescription:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(FMLiveSwitchSdpMedia *) + parseWithS:
 Creates an FMLiveSwitchSdpMedia instance from a string. More...
 

Detailed Description

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

Method Documentation

◆ generateRtpProfileWithType:rtcpFeedbackSupported:useDtls:useEncryption:

+ (NSString*) generateRtpProfileWithType: (FMLiveSwitchStreamType)  type
rtcpFeedbackSupported: (bool)  rtcpFeedbackSupported
useDtls: (bool)  useDtls
useEncryption: (bool)  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.

Parameters
typeStream type.
rtcpFeedbackSupportedIndicates whether Rtcp-based feedback is supported.
useDtlsIndicates whether (D)TLS is in use.
useEncryptionIndicates whether encryption is in use.

◆ getPayloadTypesWithFormatDesciption:

+ (NSMutableArray*) getPayloadTypesWithFormatDesciption: (NSString *)  formatDesciption

Gets the payload types.

Parameters
formatDesciptionThe media format desciption.

◆ getWellKnownPayloadClockRateWithPayloadType:

+ (int) getWellKnownPayloadClockRateWithPayloadType: (int)  payloadType

Returns the clockrate of a well-known payload type.

Parameters
payloadTypeThe well-known payload type to get the clockrate of.

◆ getWellKnownPayloadNameWithPayloadType:

+ (NSString*) getWellKnownPayloadNameWithPayloadType: (int)  payloadType

Returns the name of a well-known payload type.

Parameters
payloadTypeThe well-known payload type to get the name of.

◆ initWithMediaType:transportPort:transportProtocol:rtpPayloadTypeNumbers:

- (instancetype) initWithMediaType: (NSString *)  mediaType
transportPort: (int)  transportPort
transportProtocol: (NSString *)  transportProtocol
rtpPayloadTypeNumbers: (NSMutableArray *)  rtpPayloadTypeNumbers 

Initializes a new instance of the FMLiveSwitchSdpRtpMedia class.

Parameters
mediaTypeThe media type. See FMLiveSwitchSdpMediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.
rtpPayloadTypeNumbersThe RTP payload type numbers.

◆ mediaWithMediaType:transportPort:transportProtocol:rtpPayloadTypeNumbers:

+ (FMLiveSwitchSdpRtpMedia*) mediaWithMediaType: (NSString *)  mediaType
transportPort: (int)  transportPort
transportProtocol: (NSString *)  transportProtocol
rtpPayloadTypeNumbers: (NSMutableArray *)  rtpPayloadTypeNumbers 

Initializes a new instance of the FMLiveSwitchSdpRtpMedia class.

Parameters
mediaTypeThe media type. See FMLiveSwitchSdpMediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.
rtpPayloadTypeNumbersThe RTP payload type numbers.

◆ rtpAvpfTransportProtocol

+ (NSString*) rtpAvpfTransportProtocol

Gets the protocol keyword for the extended RTP audio/video profile.

◆ rtpAvpTransportProtocol

+ (NSString*) rtpAvpTransportProtocol

Gets the protocol keyword for the RTP audio/video profile.

◆ rtpSavpfTransportProtocol

+ (NSString*) rtpSavpfTransportProtocol

Gets the protocol keyword for the extended Secure RTP audio/video profile.

◆ rtpSavpTransportProtocol

+ (NSString*) rtpSavpTransportProtocol

Gets the protocol keyword for the Secure RTP audio/video profile.

◆ supportsEncryptionWithProtocol:

+ (bool) supportsEncryptionWithProtocol: (NSString *)  protocol

Returns a value indicating whther a given protocol supports encryption.

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

◆ supportsRtcpBasedFeedbackWithProtocol:

+ (bool) supportsRtcpBasedFeedbackWithProtocol: (NSString *)  protocol

Returns a value indicating whther a given protocol supports encryption.

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

◆ udpTlsRtpSavpfTransportProtocol

+ (NSString*) udpTlsRtpSavpfTransportProtocol

Gets the protocol keyword for the extended Secure RTP audio/video profile with DTLS key exchange.

◆ udpTlsRtpSavpTransportProtocol

+ (NSString*) udpTlsRtpSavpTransportProtocol

Gets the protocol keyword for the Secure RTP audio/video profile with DTLS key exchange.