FMIceLinkSdpRtpExtMapAttribute Class Reference

Inherits from FMIceLinkSdpAttribute : NSObject
Declared in FMIceLinkSdpRtpExtMapAttribute.h
FMIceLinkSdpRtpExtMapAttribute.m

Overview

[https://tools.ietf.org/html/rfc5285](https://tools.ietf.org/html/rfc5285)#section-5 Stream or media-level attribute used to indicate the presence of RTP Header Extensions, and the mapping of local identifiers used in the header extension to a larger namespace. A usable mapping MUST use IDs in the valid range, and each ID in this range MUST be used only once for each media (or only once if the mappings are session level). Mappings that do not conform to these rules MAY be presented, for instance, during offer/answer negotiation as described in the next section, but remapping to conformant values is necessary before they can be applied. Each extension is named by a URI. Each local identifier potentially used in the stream is mapped to a string using an attribute of the form: a=extmap:VALUE["/"DIRECTION] URI EXTENSIONATTRIBUTES Where URI is a URI, as above, VALUE is the local identifier (ID) of this extension and is an integer in the valid range inclusive (0 is reserved for padding in both forms, and 15 is reserved in the one-byte header form), and direction is one of "sendonly", "recvonly", "sendrecv", or "inactive" (without the quotes). Example: a=extmap:1 [http://example.com/082005/ext.htm](http://example.com/082005/ext.htm)#ttime a=extmap:2/sendrecv [http://example.com/082005/ext.htm](http://example.com/082005/ext.htm)#xmeta short

– direction

Gets the direction of this extension (optional). If not present, stream direction is assumed to be the direction of the extension.
- (FMIceLinkStreamDirection)direction

Discussion

Gets the direction of this extension (optional). If not present, stream direction is assumed to be the direction of the extension.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– extensionAttributes

Gets extension attributes (optional).
- (NSString *)extensionAttributes

Discussion

Gets extension attributes (optional).

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

+ extMapAttributeWithId:uri:

RTP Extension Map Attribute.
+ (FMIceLinkSdpRtpExtMapAttribute *)extMapAttributeWithId:(int)idValue uri:(NSString *)uri

Parameters

idValue

Local identifier of this extension and is an integer in the valid range inclusive (0 is reserved for padding in both forms, and 15 is reserved in the one-byte header form.

uri

Well known extension identifier.

Discussion

RTP Extension Map Attribute.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

+ extMapAttributeWithId:uri:direction:

RTP Extension Map Attribute.
+ (FMIceLinkSdpRtpExtMapAttribute *)extMapAttributeWithId:(int)idValue uri:(NSString *)uri direction:(FMIceLinkStreamDirection)direction

Parameters

idValue

Local identifier of this extension and is an integer in the valid range inclusive (0 is reserved for padding in both forms, and 15 is reserved in the one-byte header form.

uri

Well known extension identifier.

direction

Disered direction of this RTP Extension Header.

Discussion

RTP Extension Map Attribute.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

+ fromAttributeValue:

Initializes a new instance of the [FMIceLinkSdpRtpMapAttribute](../Classes/FMIceLinkSdpRtpMapAttribute.html) class.
+ (FMIceLinkSdpRtpExtMapAttribute *)fromAttributeValue:(NSString *)value

Parameters

value

The attribute value.

Discussion

Initializes a new instance of the [FMIceLinkSdpRtpMapAttribute](../Classes/FMIceLinkSdpRtpMapAttribute.html) class.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– getAttributeValue

Gets the internal value of the attribute.

@return

- (NSString *)getAttributeValue

Discussion

Gets the internal value of the attribute.

@return

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– id

Gets the local identifier of this extension.
- (int)id

Discussion

Gets the local identifier of this extension.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– initWithId:uri:

RTP Extension Map Attribute.
- (instancetype)initWithId:(int)idValue uri:(NSString *)uri

Parameters

idValue

Local identifier of this extension and is an integer in the valid range inclusive (0 is reserved for padding in both forms, and 15 is reserved in the one-byte header form.

uri

Well known extension identifier.

Discussion

RTP Extension Map Attribute.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– initWithId:uri:direction:

RTP Extension Map Attribute.
- (instancetype)initWithId:(int)idValue uri:(NSString *)uri direction:(FMIceLinkStreamDirection)direction

Parameters

idValue

Local identifier of this extension and is an integer in the valid range inclusive (0 is reserved for padding in both forms, and 15 is reserved in the one-byte header form.

uri

Well known extension identifier.

direction

Disered direction of this RTP Extension Header.

Discussion

RTP Extension Map Attribute.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– setDirection:

Sets the [direction](#//api/name/direction) of this extension (optional). If not present, stream [direction](#//api/name/direction) is assumed to be the [direction](#//api/name/direction) of the extension.
- (void)setDirection:(FMIceLinkStreamDirection)value

Discussion

Sets the [direction](#//api/name/direction) of this extension (optional). If not present, stream [direction](#//api/name/direction) is assumed to be the [direction](#//api/name/direction) of the extension.

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– setExtensionAttributes:

Sets extension attributes (optional).
- (void)setExtensionAttributes:(NSString *)value

Discussion

Sets extension attributes (optional).

Declared In

FMIceLinkSdpRtpExtMapAttribute.h

– uri

Gets the well-known URI of this extension
- (NSString *)uri

Discussion

Gets the well-known URI of this extension

Declared In

FMIceLinkSdpRtpExtMapAttribute.h