fm.liveswitch.sdp.rtp.MapAttribute 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...

Public Member Functions

void addRelatedRtcpFeedbackAttribute (fm.liveswitch.sdp.rtcp.FeedbackAttribute attribute)
 Adds an Rtcp Feedback attribute associated with this Map Attribute. More...
 
int getClockRate ()
 Gets the payload clock rate. More...
 
String getFormatName ()
 Gets the format name denoting the payload format to be used. More...
 
String getFormatParameters ()
 Gets format parameters for the payload. More...
 
int getPayloadType ()
 Gets the RTP payload type number. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedCcmFirFeedbackAttribute ()
 Gets the RTCP "ccm fir" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedCcmLrrFeedbackAttribute ()
 Gets the RTCP "ccm lrr" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedCcmTmmbnFeedbackAttribute ()
 Gets the RTCP "ccm tmmbn" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedCcmTmmbrFeedbackAttribute ()
 Gets the RTCP "ccm tmmbr" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.FormatParametersAttribute getRelatedFormatParametersAttribute ()
 Gets Format Parameters attribute associated with this Map Attribute. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedNackFeedbackAttribute ()
 Gets the RTCP "nack" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedNackPliFeedbackAttribute ()
 Gets the RTCP "nack pli" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedNackRpsiFeedbackAttribute ()
 Gets the RTCP "nack rpsi" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedNackSliFeedbackAttribute ()
 Gets the RTCP "nack sli" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedRembFeedbackAttribute ()
 Gets the RTCP "goog-remb" feedback attribute associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedRtcpFeedbackAttribute (int payloadType, String type, String subType)
 Gets the RTCP feedback attribute for the given payload type, type and subtype associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedRtcpFeedbackAttribute (String type, String subType)
 Gets the RTCP feedback attribute for the given type and subtype associated with this payload type. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute[] getRelatedRtcpFeedbackAttributes ()
 Gets Rtcp Feedback attributes associated with this Map Attribute. More...
 
fm.liveswitch.sdp.rtcp.FeedbackAttribute getRelatedTransportCCFeedbackAttribute ()
 Gets the RTCP "transport-cc" feedback attribute associated with this payload type. More...
 
 MapAttribute (int payloadType, String formatName, int clockRate)
 Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class. More...
 
 MapAttribute (int payloadType, String formatName, int clockRate, String formatParameters)
 Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class. More...
 
boolean removeRelatedRtcpFeedbackAttribute (fm.liveswitch.sdp.rtcp.FeedbackAttribute attribute)
 Removes an Rtcp Feedback attribute associated with this Map Attribute. More...
 
void resetRtcpFeedbackAttributes (fm.liveswitch.sdp.rtcp.FeedbackAttribute[] attributes)
 Resets Rtcp Feedback attributes associated with this Map Attribute. More...
 
void setPayloadType (int value)
 Sets the RTP payload type number. More...
 
void setRelatedFormatParametersAttribute (fm.liveswitch.sdp.FormatParametersAttribute value)
 Sets Format Parameters attribute associated with this Map Attribute. More...
 
- Public Member Functions inherited from fm.liveswitch.sdp.Attribute
fm.liveswitch.sdp.AttributeType getAttributeType ()
 Gets this Attribute's Type. More...
 
fm.liveswitch.sdp.AttributeCategory getMultiplexingCategory ()
 Gets the Multiplexing Category of this Attribute. More...
 
void setAttributeType (fm.liveswitch.sdp.AttributeType value)
 Sets this Attribute's Type. More...
 
String toString ()
 Converts this instance to a string. More...
 

Static Public Member Functions

static fm.liveswitch.sdp.rtp.MapAttribute fromAttributeValue (String value)
 Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class. More...
 
static fm.liveswitch.sdp.rtp.MapAttribute getIanaMapAttribute (int payloadType)
 Gets the RTP map attribute for an IANA-reserved payload type. More...
 
- Static Public Member Functions inherited from fm.liveswitch.sdp.Attribute
static fm.liveswitch.sdp.Attribute createAttribute (String name, String value)
 Creates an attribute. More...
 
static String getTypeName (@SuppressWarnings("rawtypes") Class type)
 Gets the name of the attribute type. More...
 
static boolean isMediaLevel (@SuppressWarnings("rawtypes") Class type)
 Determines whether the type applies to media streams. More...
 
static boolean isSessionLevel (@SuppressWarnings("rawtypes") Class type)
 Determines whether the type applies to sessions. More...
 
static fm.liveswitch.sdp.Attribute parse (String s)
 Creates an fm.liveswitch.sdp.ConnectionData instance from a string. More...
 

Protected Member Functions

String getAttributeValue ()
 Gets the internal value of the attribute. More...
 
- Protected Member Functions inherited from fm.liveswitch.sdp.Attribute
 Attribute ()
 
void setMultiplexingCategory (fm.liveswitch.sdp.AttributeCategory value)
 Sets the Multiplexing Category of this Attribute. 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.

Constructor & Destructor Documentation

◆ MapAttribute() [1/2]

fm.liveswitch.sdp.rtp.MapAttribute.MapAttribute ( int  payloadType,
String  formatName,
int  clockRate 
)

Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class.

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

◆ MapAttribute() [2/2]

fm.liveswitch.sdp.rtp.MapAttribute.MapAttribute ( int  payloadType,
String  formatName,
int  clockRate,
String  formatParameters 
)

Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute 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.

Member Function Documentation

◆ addRelatedRtcpFeedbackAttribute()

void fm.liveswitch.sdp.rtp.MapAttribute.addRelatedRtcpFeedbackAttribute ( fm.liveswitch.sdp.rtcp.FeedbackAttribute  attribute)

Adds an Rtcp Feedback attribute associated with this Map Attribute.

Parameters
attribute

◆ fromAttributeValue()

static fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.rtp.MapAttribute.fromAttributeValue ( String  value)
static

Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue()

String fm.liveswitch.sdp.rtp.MapAttribute.getAttributeValue ( )
protected

Gets the internal value of the attribute.

Reimplemented from fm.liveswitch.sdp.Attribute.

◆ getClockRate()

int fm.liveswitch.sdp.rtp.MapAttribute.getClockRate ( )

Gets the payload clock rate.

◆ getFormatName()

String fm.liveswitch.sdp.rtp.MapAttribute.getFormatName ( )

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

◆ getFormatParameters()

String fm.liveswitch.sdp.rtp.MapAttribute.getFormatParameters ( )

Gets format parameters for the payload.

◆ getIanaMapAttribute()

static fm.liveswitch.sdp.rtp.MapAttribute fm.liveswitch.sdp.rtp.MapAttribute.getIanaMapAttribute ( int  payloadType)
static

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

Parameters
payloadTypeThe payload type.

◆ getPayloadType()

int fm.liveswitch.sdp.rtp.MapAttribute.getPayloadType ( )

Gets the RTP payload type number.

◆ getRelatedCcmFirFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedCcmFirFeedbackAttribute ( )

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

◆ getRelatedCcmLrrFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedCcmLrrFeedbackAttribute ( )

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

◆ getRelatedCcmTmmbnFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedCcmTmmbnFeedbackAttribute ( )

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

◆ getRelatedCcmTmmbrFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedCcmTmmbrFeedbackAttribute ( )

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

◆ getRelatedFormatParametersAttribute()

fm.liveswitch.sdp.FormatParametersAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedFormatParametersAttribute ( )

Gets Format Parameters attribute associated with this Map Attribute.

◆ getRelatedNackFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedNackFeedbackAttribute ( )

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

◆ getRelatedNackPliFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedNackPliFeedbackAttribute ( )

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

◆ getRelatedNackRpsiFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedNackRpsiFeedbackAttribute ( )

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

◆ getRelatedNackSliFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedNackSliFeedbackAttribute ( )

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

◆ getRelatedRembFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedRembFeedbackAttribute ( )

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

◆ getRelatedRtcpFeedbackAttribute() [1/2]

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedRtcpFeedbackAttribute ( int  payloadType,
String  type,
String  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.

◆ getRelatedRtcpFeedbackAttribute() [2/2]

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedRtcpFeedbackAttribute ( String  type,
String  subType 
)

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

Parameters
typeThe type.
subTypeThe sub-type.

◆ getRelatedRtcpFeedbackAttributes()

fm.liveswitch.sdp.rtcp.FeedbackAttribute [] fm.liveswitch.sdp.rtp.MapAttribute.getRelatedRtcpFeedbackAttributes ( )

Gets Rtcp Feedback attributes associated with this Map Attribute.

◆ getRelatedTransportCCFeedbackAttribute()

fm.liveswitch.sdp.rtcp.FeedbackAttribute fm.liveswitch.sdp.rtp.MapAttribute.getRelatedTransportCCFeedbackAttribute ( )

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

◆ removeRelatedRtcpFeedbackAttribute()

boolean fm.liveswitch.sdp.rtp.MapAttribute.removeRelatedRtcpFeedbackAttribute ( fm.liveswitch.sdp.rtcp.FeedbackAttribute  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 fm.liveswitch.sdp.rtp.MapAttribute.resetRtcpFeedbackAttributes ( fm.liveswitch.sdp.rtcp.FeedbackAttribute[]  attributes)

Resets Rtcp Feedback attributes associated with this Map Attribute.

◆ setPayloadType()

void fm.liveswitch.sdp.rtp.MapAttribute.setPayloadType ( int  value)

Sets the RTP payload type number.

◆ setRelatedFormatParametersAttribute()

void fm.liveswitch.sdp.rtp.MapAttribute.setRelatedFormatParametersAttribute ( fm.liveswitch.sdp.FormatParametersAttribute  value)

Sets Format Parameters attribute associated with this Map Attribute.