Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    System.Object
    Attribute
    ExtMapAttribute
    Inherited Members
    Attribute.AttributeType
    Attribute.MultiplexingCategory
    Attribute.GetTypeName(Type)
    Attribute.IsSessionLevel(Type)
    Attribute.IsMediaLevel(Type)
    Attribute.CreateAttribute(String, String)
    Attribute.ToString()
    Attribute.Parse(String)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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
    Overrides
    Attribute.GetAttributeValue()
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0