public class RTPExtension
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABS_SEND_TIME_URN
The URN identifying the abs-send-time RTP extension.
|
static java.lang.String |
CSRC_AUDIO_LEVEL_URN
The URN identifying the RTP extension that allows mixers to send to
conference participants the audio levels of all contributing sources.
|
static java.lang.String |
FRAME_MARKING_URN
The URN which identifies the framemarking RTP extension defined at
"https://tools.ietf.org/html/draft-ietf-avtext-framemarking-03"
|
static java.lang.String |
ORIGINAL_HEADER_BLOCK_URN
The URN which identifies the Original Header Block RTP extension defined
in "https://tools.ietf.org/html/draft-ietf-perc-double-02".
|
static java.lang.String |
RTP_STREAM_ID_URN
The URN which identifies the rtp-stream-id extensions
in "https://tools.ietf.org/html/draft-ietf-mmusic-rid-10".
|
static java.lang.String |
SSRC_AUDIO_LEVEL_URN
The URN identifying the RTP extension that allows clients to send to
conference mixers the audio level of their packet payload.
|
static java.lang.String |
TOF_URN
The URN which identifies the transmission time-offset extensions
in "https://tools.ietf.org/html/rfc5450".
|
static java.lang.String |
TRANSPORT_CC_URN
The URN which identifies the Transport-Wide Congestion Control RTP
extension.
|
Constructor and Description |
---|
RTPExtension(java.net.URI extensionURI)
Creates an RTPExtension instance for the specified
extensionURI using a default SENDRECV direction and no
extension attributes.
|
RTPExtension(java.net.URI extensionURI,
MediaDirection direction)
Creates an RTPExtension instance for the specified
extensionURI and direction.
|
RTPExtension(java.net.URI extensionURI,
MediaDirection direction,
java.lang.String extensionAttributes)
Creates an RTPExtension instance for the specified
extensionURI and direction and sets the specified
extensionAttributes.
|
RTPExtension(java.net.URI extensionURI,
java.lang.String extensionAttributes)
Creates an RTPExtension instance for the specified
extensionURI using a default SENDRECV direction and
extensionAttributes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if and only if o is an instance of
RTPExtension and o's URI is equal to this
extension's URI.
|
MediaDirection |
getDirection()
Returns the direction that the corresponding MediaDevice
supports for this extension.
|
java.lang.String |
getExtensionAttributes()
Returns the extension attributes associated with this
RTPExtension or null if this extension does not have
any.
|
java.net.URI |
getURI()
Returns the URI that identifies the format and meaning of this
extension.
|
int |
hashCode()
Returns the hash code of this extension instance which is actually the
hash code of the URI that this extension is encapsulating.
|
java.lang.String |
toString()
Returns a String representation of this RTPExtension's
URI.
|
public static final java.lang.String CSRC_AUDIO_LEVEL_URN
public static final java.lang.String SSRC_AUDIO_LEVEL_URN
public static final java.lang.String ABS_SEND_TIME_URN
public static final java.lang.String FRAME_MARKING_URN
public static final java.lang.String ORIGINAL_HEADER_BLOCK_URN
public static final java.lang.String TRANSPORT_CC_URN
public static final java.lang.String RTP_STREAM_ID_URN
public static final java.lang.String TOF_URN
public RTPExtension(java.net.URI extensionURI)
extensionURI
- the URI (possibly a URN) of the RTP
extension that we'd like to create.public RTPExtension(java.net.URI extensionURI, MediaDirection direction)
extensionURI
- the URI (possibly a URN) of the RTP
extension that we'd like to create.direction
- a MediaDirection instance indication how this
extension will be transmitted.public RTPExtension(java.net.URI extensionURI, java.lang.String extensionAttributes)
extensionURI
- the URI (possibly a URN) of the RTP
extension that we'd like to create.extensionAttributes
- any attributes that we'd like to add to this
extension.public RTPExtension(java.net.URI extensionURI, MediaDirection direction, java.lang.String extensionAttributes)
extensionURI
- the URI (possibly a URN) of the RTP
extension that we'd like to create.direction
- a MediaDirection instance indication how this
extension will be transmitted.extensionAttributes
- any attributes that we'd like to add to this
extension.public MediaDirection getDirection()
public java.net.URI getURI()
public java.lang.String getExtensionAttributes()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the Object that we'd like to compare to this
RTPExtension.public int hashCode()
hashCode
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.