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...
Public Member Functions | |
ExtMapAttribute (int idValue, String uri) | |
RTP Extension Map Attribute. More... | |
ExtMapAttribute (int idValue, String uri, fm.liveswitch.StreamDirection direction) | |
RTP Extension Map Attribute. More... | |
fm.liveswitch.StreamDirection | getDirection () |
Gets the direction of this extension (optional). More... | |
String | getExtensionAttributes () |
Gets extension attributes (optional). More... | |
int | getId () |
Gets the local identifier of this extension. More... | |
String | getUri () |
Gets the well-known URI of this extension. More... | |
void | setDirection (fm.liveswitch.StreamDirection value) |
Sets the direction of this extension (optional). More... | |
void | setExtensionAttributes (String value) |
Sets extension attributes (optional). More... | |
void | setId (int value) |
Sets the local identifier of this extension. 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.ExtMapAttribute | fromAttributeValue (String value) |
Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class. 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... | |
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
fm.liveswitch.sdp.rtp.ExtMapAttribute.ExtMapAttribute | ( | int | idValue, |
String | 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. |
fm.liveswitch.sdp.rtp.ExtMapAttribute.ExtMapAttribute | ( | int | idValue, |
String | uri, | ||
fm.liveswitch.StreamDirection | 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. |
|
static |
Initializes a new instance of the fm.liveswitch.sdp.rtp.MapAttribute class.
value | The attribute value. |
|
protected |
Gets the internal value of the attribute.
Reimplemented from fm.liveswitch.sdp.Attribute.
fm.liveswitch.StreamDirection fm.liveswitch.sdp.rtp.ExtMapAttribute.getDirection | ( | ) |
Gets the direction of this extension (optional).
If not present, stream direction is assumed to be the direction of the extension.
String fm.liveswitch.sdp.rtp.ExtMapAttribute.getExtensionAttributes | ( | ) |
Gets extension attributes (optional).
int fm.liveswitch.sdp.rtp.ExtMapAttribute.getId | ( | ) |
Gets the local identifier of this extension.
String fm.liveswitch.sdp.rtp.ExtMapAttribute.getUri | ( | ) |
Gets the well-known URI of this extension.
void fm.liveswitch.sdp.rtp.ExtMapAttribute.setDirection | ( | fm.liveswitch.StreamDirection | value | ) |
Sets the direction of this extension (optional).
If not present, stream direction is assumed to be the direction of the extension.
void fm.liveswitch.sdp.rtp.ExtMapAttribute.setExtensionAttributes | ( | String | value | ) |
Sets extension attributes (optional).
void fm.liveswitch.sdp.rtp.ExtMapAttribute.setId | ( | int | value | ) |
Sets the local identifier of this extension.