public class SourcePacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The XML name of the setup element defined by Source-Specific
Media Attributes in Jingle.
|
static java.lang.String |
NAMESPACE
The XML namespace of the setup element defined by
Source-Specific Media Attributes in Jingle.
|
static java.lang.String |
RID_ATTR_NAME
The XML name of the attribute which corresponds to the rid
attribute in SDP.
|
static java.lang.String |
SSRC_ATTR_NAME
The XML name of the setup element's attribute which corresponds
to the ssrc media attribute in SDP.
|
attributes
Constructor and Description |
---|
SourcePacketExtension()
Initializes a new SourcePacketExtension instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(ParameterPacketExtension parameter)
Adds a specific parameter (as defined by Source-Specific Media Attributes
in Jingle) to this source.
|
SourcePacketExtension |
copy()
Returns deep copy of this SourcePacketExtension.
|
java.lang.String |
getParameter(java.lang.String name)
Finds the value of SSRC parameter identified by given name.
|
java.util.List<ParameterPacketExtension> |
getParameters()
Gets the parameters (as defined by Source-Specific Media Attributes in
Jingle) of this source.
|
java.lang.String |
getRid()
Gets the rid of this source, if it has one
|
long |
getSSRC()
Gets the synchronization source (SSRC) ID of this source.
|
boolean |
hasRid()
Check if this source has an rid
|
boolean |
hasSSRC()
Check if this source has an ssrc
|
void |
setRid(java.lang.String rid)
Sets the rid of this source
|
void |
setSSRC(long ssrc)
Sets the synchronization source (SSRC) ID of this source.
|
boolean |
sourceEquals(SourcePacketExtension other)
Check if this source matches the given one with regards to
matching source identifiers (ssrc or rid)
|
java.lang.String |
toString() |
addChildExtension, addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public static final java.lang.String SSRC_ATTR_NAME
public static final java.lang.String RID_ATTR_NAME
public SourcePacketExtension()
public void addParameter(ParameterPacketExtension parameter)
parameter
- the ParameterPacketExtension to add to this
sourcepublic java.util.List<ParameterPacketExtension> getParameters()
public java.lang.String getParameter(java.lang.String name)
name
- the name of SSRC parameter to find.public long getSSRC()
public void setSSRC(long ssrc)
ssrc
- the synchronization source (SSRC) ID to be set on this sourcepublic boolean hasSSRC()
public java.lang.String getRid()
public void setRid(java.lang.String rid)
rid
- the rid to be set (or null to clear the existing rid)public boolean hasRid()
public boolean sourceEquals(SourcePacketExtension other)
other
- the other SourcePacketExtension to compare topublic SourcePacketExtension copy()
public java.lang.String toString()
toString
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.