|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension
net.java.sip.communicator.impl.protocol.jabber.extensions.jingle.PayloadTypePacketExtension
public class PayloadTypePacketExtension
Represents the payload-type elements described in XEP-0167.
| Field Summary | |
|---|---|
static String |
CHANNELS_ATTR_NAME
The name of the channels payload-type argument. |
static String |
CLOCKRATE_ATTR_NAME
The name of the clockrate SDP argument. |
static String |
ELEMENT_NAME
The name of the "payload-type" element. |
static String |
ID_ATTR_NAME
The name of the payload id SDP argument. |
static String |
MAXPTIME_ATTR_NAME
The name of the maxptime SDP argument. |
static String |
NAME_ATTR_NAME
The name of the name SDP argument. |
static String |
PTIME_ATTR_NAME
The name of the ptime SDP argument. |
| Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
|---|
attributes |
| Constructor Summary | |
|---|---|
PayloadTypePacketExtension()
Creates a new PayloadTypePacketExtension instance. |
|
| Method Summary | |
|---|---|
void |
addParameter(ParameterPacketExtension parameter)
Adds an SDP parameter to the list that we already have registered for this payload type. |
int |
getChannels()
Returns the number of channels in this payload type. |
int |
getClockrate()
Returns the sampling frequency in Hertz used by this encoding. |
int |
getID()
Returns the payload identifier for this encoding (as specified by RFC 3551 or a dynamic one). |
int |
getMaxptime()
Returns maximum packet time as specified in RFC 4566. |
String |
getName()
Returns the name of the encoding, or as per the XEP: the appropriate subtype of the MIME type. |
List<ParameterPacketExtension> |
getParameters()
Returns a reference to the the list of parameters currently registered for this payload type. |
int |
getPtime()
Returns packet time as specified in RFC 4566. |
void |
setChannels(int channels)
Sets the number of channels in this payload type. |
void |
setClockrate(int clockrate)
Specifies the sampling frequency in Hertz used by this encoding. |
void |
setId(int id)
Specifies the payload identifier for this encoding. |
void |
setMaxptime(int maxptime)
Sets the maximum packet time as specified in RFC 4566. |
void |
setName(String name)
Sets the name of the encoding, or as per the XEP: the appropriate subtype of the MIME type. |
void |
setPtime(int ptime)
Sets the packet time as specified in RFC 4566. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
|---|
addChildExtension, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensions, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getText, removeAttribute, setAttribute, setNamespace, setText, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ELEMENT_NAME
public static final String CHANNELS_ATTR_NAME
public static final String CLOCKRATE_ATTR_NAME
public static final String ID_ATTR_NAME
public static final String MAXPTIME_ATTR_NAME
public static final String NAME_ATTR_NAME
public static final String PTIME_ATTR_NAME
| Constructor Detail |
|---|
public PayloadTypePacketExtension()
PayloadTypePacketExtension instance.
| Method Detail |
|---|
public void setChannels(int channels)
channels - the number of channels in this payload type.public int getChannels()
public void setClockrate(int clockrate)
clockrate - the sampling frequency in Hertz used by this encoding.public int getClockrate()
public void setId(int id)
id - the payload type idpublic int getID()
public void setMaxptime(int maxptime)
maxptime - the maximum packet time as specified in RFC 4566public int getMaxptime()
public void setPtime(int ptime)
ptime - the packet time as specified in RFC 4566public int getPtime()
public void setName(String name)
name - the name of this encoding.public String getName()
public void addParameter(ParameterPacketExtension parameter)
parameter - an SDP parameter for this encoding.public List<ParameterPacketExtension> getParameters()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||