FMLiveSwitchSdpRtpMapAttribute Class Reference

This attribute maps from an RTP payload type number (as used in an "m=" line) to an format name denoting the payload format to be used. More...

Instance Methods

(void) - addRelatedRtcpFeedbackAttribute:
 Adds an Rtcp Feedback attribute associated with this Map Attribute. More...
 
(int) - clockRate
 Gets the payload clock rate. More...
 
(NSString *) - formatName
 Gets the format name denoting the payload format to be used. More...
 
(NSString *) - formatParameters
 Gets format parameters for the payload. More...
 
(NSString *) - getAttributeValue
 Gets the internal value of the attribute. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedCcmFirFeedbackAttribute
 Gets the RTCP "ccm fir" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedCcmLrrFeedbackAttribute
 Gets the RTCP "ccm lrr" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedCcmTmmbnFeedbackAttribute
 Gets the RTCP "ccm tmmbn" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedCcmTmmbrFeedbackAttribute
 Gets the RTCP "ccm tmmbr" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedNackFeedbackAttribute
 Gets the RTCP "nack" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedNackPliFeedbackAttribute
 Gets the RTCP "nack pli" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedNackRpsiFeedbackAttribute
 Gets the RTCP "nack rpsi" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedNackSliFeedbackAttribute
 Gets the RTCP "nack sli" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedRembFeedbackAttribute
 Gets the RTCP "goog-remb" feedback attribute associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedRtcpFeedbackAttributeWithPayloadType:type:subType:
 Gets the RTCP feedback attribute for the given payload type, type and subtype associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedRtcpFeedbackAttributeWithType:subType:
 Gets the RTCP feedback attribute for the given type and subtype associated with this payload type. More...
 
(FMLiveSwitchSdpRtcpFeedbackAttribute *) - getRelatedTransportCCFeedbackAttribute
 Gets the RTCP "transport-cc" feedback attribute associated with this payload type. More...
 
(instancetype) - initWithPayloadType:formatName:clockRate:
 Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class. More...
 
(instancetype) - initWithPayloadType:formatName:clockRate:formatParameters:
 Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class. More...
 
(int) - payloadType
 Gets the RTP payload type number. More...
 
(FMLiveSwitchSdpFormatParametersAttribute *) - relatedFormatParametersAttribute
 Gets Format Parameters attribute associated with this Map Attribute. More...
 
(NSMutableArray *) - relatedRtcpFeedbackAttributes
 Gets Rtcp Feedback attributes associated with this Map Attribute. More...
 
(bool) - removeRelatedRtcpFeedbackAttribute:
 Removes an Rtcp Feedback attribute associated with this Map Attribute. More...
 
(void) - resetRtcpFeedbackAttributes:
 Resets Rtcp Feedback attributes associated with this Map Attribute. More...
 
(void) - setPayloadType:
 Sets the RTP payload type number. More...
 
(void) - setRelatedFormatParametersAttribute:
 Sets Format Parameters attribute associated with this Map Attribute. More...
 
- Instance Methods inherited from FMLiveSwitchSdpAttribute
(FMLiveSwitchSdpAttributeType) - attributeType
 Gets this Attribute's Type. More...
 
(NSString *) - description
 Converts this instance to a string. More...
 
(instancetype) - init
 
(FMLiveSwitchSdpAttributeCategory) - multiplexingCategory
 Gets the Multiplexing Category of this Attribute. More...
 
(void) - setAttributeType:
 Sets this Attribute's Type. More...
 
(void) - setMultiplexingCategory:
 Sets the Multiplexing Category of this Attribute. More...
 

Class Methods

(FMLiveSwitchSdpRtpMapAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class. More...
 
(FMLiveSwitchSdpRtpMapAttribute *) + getIanaMapAttributeWithPayloadType:
 Gets the RTP map attribute for an IANA-reserved payload type. More...
 
(FMLiveSwitchSdpRtpMapAttribute *) + mapAttributeWithPayloadType:formatName:clockRate:
 Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class. More...
 
(FMLiveSwitchSdpRtpMapAttribute *) + mapAttributeWithPayloadType:formatName:clockRate:formatParameters:
 Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class. More...
 
- Class Methods inherited from FMLiveSwitchSdpAttribute
(FMLiveSwitchSdpAttribute *) + attribute
 
(FMLiveSwitchSdpAttribute *) + createAttributeWithName:value:
 Creates an attribute. More...
 
(NSString *) + getTypeNameWithType:
 Gets the name of the attribute type. More...
 
(bool) + isMediaLevelWithType:
 Determines whether the type applies to media streams. More...
 
(bool) + isSessionLevelWithType:
 Determines whether the type applies to sessions. More...
 
(FMLiveSwitchSdpAttribute *) + parseWithS:
 Creates an FMLiveSwitchSdpConnectionData instance from a string. More...
 

Detailed Description

This attribute maps from an RTP payload type number (as used in an "m=" line) to an format name denoting the payload format to be used.

It also provides information on the clock rate and format parameters. It is a media-level attribute that is not dependent on charset.

Method Documentation

◆ addRelatedRtcpFeedbackAttribute:

- (void) addRelatedRtcpFeedbackAttribute: (FMLiveSwitchSdpRtcpFeedbackAttribute *)  attribute

Adds an Rtcp Feedback attribute associated with this Map Attribute.

Parameters
attribute

◆ clockRate

- (int) clockRate

Gets the payload clock rate.

◆ formatName

- (NSString*) formatName

Gets the format name denoting the payload format to be used.

◆ formatParameters

- (NSString*) formatParameters

Gets format parameters for the payload.

◆ fromAttributeValue:

+ (FMLiveSwitchSdpRtpMapAttribute*) fromAttributeValue: (NSString *)  value

Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue

- (NSString*) getAttributeValue

Gets the internal value of the attribute.

Implements FMLiveSwitchSdpAttribute.

◆ getIanaMapAttributeWithPayloadType:

+ (FMLiveSwitchSdpRtpMapAttribute*) getIanaMapAttributeWithPayloadType: (int)  payloadType

Gets the RTP map attribute for an IANA-reserved payload type.

Parameters
payloadTypeThe payload type.

◆ getRelatedCcmFirFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedCcmFirFeedbackAttribute

Gets the RTCP "ccm fir" feedback attribute associated with this payload type.

◆ getRelatedCcmLrrFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedCcmLrrFeedbackAttribute

Gets the RTCP "ccm lrr" feedback attribute associated with this payload type.

◆ getRelatedCcmTmmbnFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedCcmTmmbnFeedbackAttribute

Gets the RTCP "ccm tmmbn" feedback attribute associated with this payload type.

◆ getRelatedCcmTmmbrFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedCcmTmmbrFeedbackAttribute

Gets the RTCP "ccm tmmbr" feedback attribute associated with this payload type.

◆ getRelatedNackFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedNackFeedbackAttribute

Gets the RTCP "nack" feedback attribute associated with this payload type.

◆ getRelatedNackPliFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedNackPliFeedbackAttribute

Gets the RTCP "nack pli" feedback attribute associated with this payload type.

◆ getRelatedNackRpsiFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedNackRpsiFeedbackAttribute

Gets the RTCP "nack rpsi" feedback attribute associated with this payload type.

◆ getRelatedNackSliFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedNackSliFeedbackAttribute

Gets the RTCP "nack sli" feedback attribute associated with this payload type.

◆ getRelatedRembFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedRembFeedbackAttribute

Gets the RTCP "goog-remb" feedback attribute associated with this payload type.

◆ getRelatedRtcpFeedbackAttributeWithPayloadType:type:subType:

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedRtcpFeedbackAttributeWithPayloadType: (int)  payloadType
type: (NSString *)  type
subType: (NSString *)  subType 

Gets the RTCP feedback attribute for the given payload type, type and subtype associated with this payload type.

Parameters
payloadTypeThe payload type.
typeThe type.
subTypeThe sub-type.

◆ getRelatedRtcpFeedbackAttributeWithType:subType:

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedRtcpFeedbackAttributeWithType: (NSString *)  type
subType: (NSString *)  subType 

Gets the RTCP feedback attribute for the given type and subtype associated with this payload type.

Parameters
typeThe type.
subTypeThe sub-type.

◆ getRelatedTransportCCFeedbackAttribute

- (FMLiveSwitchSdpRtcpFeedbackAttribute*) getRelatedTransportCCFeedbackAttribute

Gets the RTCP "transport-cc" feedback attribute associated with this payload type.

◆ initWithPayloadType:formatName:clockRate:

- (instancetype) initWithPayloadType: (int)  payloadType
formatName: (NSString *)  formatName
clockRate: (int)  clockRate 

Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class.

Parameters
payloadTypeThe RTP payload type number.
formatNameThe format name denoting the payload format to be used.
clockRateThe payload clock rate.

◆ initWithPayloadType:formatName:clockRate:formatParameters:

- (instancetype) initWithPayloadType: (int)  payloadType
formatName: (NSString *)  formatName
clockRate: (int)  clockRate
formatParameters: (NSString *)  formatParameters 

Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class.

Parameters
payloadTypeThe RTP payload type number.
formatNameThe format name denoting the payload format to be used.
clockRateThe payload clock rate.
formatParametersThe format parameters for the payload.

◆ mapAttributeWithPayloadType:formatName:clockRate:

+ (FMLiveSwitchSdpRtpMapAttribute*) mapAttributeWithPayloadType: (int)  payloadType
formatName: (NSString *)  formatName
clockRate: (int)  clockRate 

Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class.

Parameters
payloadTypeThe RTP payload type number.
formatNameThe format name denoting the payload format to be used.
clockRateThe payload clock rate.

◆ mapAttributeWithPayloadType:formatName:clockRate:formatParameters:

+ (FMLiveSwitchSdpRtpMapAttribute*) mapAttributeWithPayloadType: (int)  payloadType
formatName: (NSString *)  formatName
clockRate: (int)  clockRate
formatParameters: (NSString *)  formatParameters 

Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class.

Parameters
payloadTypeThe RTP payload type number.
formatNameThe format name denoting the payload format to be used.
clockRateThe payload clock rate.
formatParametersThe format parameters for the payload.

◆ payloadType

- (int) payloadType

Gets the RTP payload type number.

◆ relatedFormatParametersAttribute

- (FMLiveSwitchSdpFormatParametersAttribute*) relatedFormatParametersAttribute

Gets Format Parameters attribute associated with this Map Attribute.

◆ relatedRtcpFeedbackAttributes

- (NSMutableArray*) relatedRtcpFeedbackAttributes

Gets Rtcp Feedback attributes associated with this Map Attribute.

◆ removeRelatedRtcpFeedbackAttribute:

- (bool) removeRelatedRtcpFeedbackAttribute: (FMLiveSwitchSdpRtcpFeedbackAttribute *)  attribute

Removes an Rtcp Feedback attribute associated with this Map Attribute.

Returns true if the attribute was reomved; if the attribute was not present, returns false.

Parameters
attribute

◆ resetRtcpFeedbackAttributes:

- (void) resetRtcpFeedbackAttributes: (NSMutableArray *)  attributes

Resets Rtcp Feedback attributes associated with this Map Attribute.

◆ setPayloadType:

- (void) setPayloadType: (int)  value

Sets the RTP payload type number.

◆ setRelatedFormatParametersAttribute:

- (void) setRelatedFormatParametersAttribute: (FMLiveSwitchSdpFormatParametersAttribute *)  value

Sets Format Parameters attribute associated with this Map Attribute.