Class ExtMapAttribute
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
Inherited Members
Namespace: FM.LiveSwitch.Sdp.Rtp
Assembly: FM.LiveSwitch.dll
Syntax
public class ExtMapAttribute : Attribute
Constructors
ExtMapAttribute(Int32, String)
RTP Extension Map Attribute.
Declaration
public ExtMapAttribute(int id, string uri)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | 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. |
System.String | uri | Well known extension identifier. |
ExtMapAttribute(Int32, String, StreamDirection)
RTP Extension Map Attribute.
Declaration
public ExtMapAttribute(int id, string uri, StreamDirection direction)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | 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. |
System.String | uri | Well known extension identifier. |
StreamDirection | direction | Disered direction of this RTP Extension Header. |
Properties
Direction
Gets or sets the direction of this extension (optional). If not present, stream direction is assumed to be the direction of the extension.
Declaration
public StreamDirection Direction { get; set; }
Property Value
Type | Description |
---|---|
StreamDirection |
ExtensionAttributes
Gets or sets extension attributes (optional).
Declaration
public string ExtensionAttributes { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
Gets or sets the local identifier of this extension.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Uri
Gets the well-known URI of this extension
Declaration
public string Uri { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromAttributeValue(String)
Initializes a new instance of the MapAttribute class.
Declaration
public static ExtMapAttribute FromAttributeValue(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The attribute value. |
Returns
Type | Description |
---|---|
ExtMapAttribute |
GetAttributeValue()
Gets the internal value of the attribute.
Declaration
protected override string GetAttributeValue()
Returns
Type | Description |
---|---|
System.String |