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. More...
Instance Methods | |
(FMLiveSwitchStreamDirection) | - direction |
Gets the direction of this extension (optional). More... | |
(NSString *) | - extensionAttributes |
Gets extension attributes (optional). More... | |
(NSString *) | - getAttributeValue |
Gets the internal value of the attribute. More... | |
(int) | - id |
Gets the local identifier of this extension. More... | |
(instancetype) | - initWithId:uri: |
RTP Extension Map Attribute. More... | |
(instancetype) | - initWithId:uri:direction: |
RTP Extension Map Attribute. More... | |
(void) | - setDirection: |
Sets the direction of this extension (optional). More... | |
(void) | - setExtensionAttributes: |
Sets extension attributes (optional). More... | |
(void) | - setId: |
Sets the local identifier of this extension. More... | |
(NSString *) | - uri |
Gets the well-known URI of this extension. 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 | |
(FMLiveSwitchSdpRtpExtMapAttribute *) | + extMapAttributeWithId:uri: |
RTP Extension Map Attribute. More... | |
(FMLiveSwitchSdpRtpExtMapAttribute *) | + extMapAttributeWithId:uri:direction: |
RTP Extension Map Attribute. More... | |
(FMLiveSwitchSdpRtpExtMapAttribute *) | + fromAttributeValue: |
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... | |
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#ttime a=extmap:2/sendrecv http://example.com/082005/ext.htm#xmeta short
- (FMLiveSwitchStreamDirection) direction |
Gets the direction of this extension (optional).
If not present, stream direction is assumed to be the direction of the extension.
- (NSString*) extensionAttributes |
Gets extension attributes (optional).
+ (FMLiveSwitchSdpRtpExtMapAttribute*) extMapAttributeWithId: | (int) | idValue | |
uri: | (NSString *) | uri | |
RTP Extension Map Attribute.
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. |
+ (FMLiveSwitchSdpRtpExtMapAttribute*) extMapAttributeWithId: | (int) | idValue | |
uri: | (NSString *) | uri | |
direction: | (FMLiveSwitchStreamDirection) | direction | |
RTP Extension Map Attribute.
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. |
+ (FMLiveSwitchSdpRtpExtMapAttribute*) fromAttributeValue: | (NSString *) | value |
Initializes a new instance of the FMLiveSwitchSdpRtpMapAttribute class.
value | The attribute value. |
- (NSString*) getAttributeValue |
Gets the internal value of the attribute.
Implements FMLiveSwitchSdpAttribute.
- (int) id |
Gets the local identifier of this extension.
- (instancetype) initWithId: | (int) | idValue | |
uri: | (NSString *) | uri | |
RTP Extension Map Attribute.
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. |
- (instancetype) initWithId: | (int) | idValue | |
uri: | (NSString *) | uri | |
direction: | (FMLiveSwitchStreamDirection) | direction | |
RTP Extension Map Attribute.
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. |
- (void) setDirection: | (FMLiveSwitchStreamDirection) | value |
Sets the direction of this extension (optional).
If not present, stream direction is assumed to be the direction of the extension.
- (void) setExtensionAttributes: | (NSString *) | value |
Sets extension attributes (optional).
- (void) setId: | (int) | value |
Sets the local identifier of this extension.
- (NSString*) uri |
Gets the well-known URI of this extension.