public class PayloadTypePacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHANNELS_ATTR_NAME
The name of the channels payload-type argument.
|
static java.lang.String |
CLOCKRATE_ATTR_NAME
The name of the clockrate SDP argument.
|
static java.lang.String |
ELEMENT_NAME
The name of the "payload-type" element.
|
static java.lang.String |
ID_ATTR_NAME
The name of the payload id SDP argument.
|
static java.lang.String |
MAXPTIME_ATTR_NAME
The name of the maxptime SDP argument.
|
static java.lang.String |
NAME_ATTR_NAME
The name of the name SDP argument.
|
static java.lang.String |
PTIME_ATTR_NAME
The name of the ptime SDP argument.
|
attributes
Constructor and Description |
---|
PayloadTypePacketExtension()
Creates a new
PayloadTypePacketExtension instance. |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(ParameterPacketExtension parameter)
Adds an SDP parameter to the list that we already have registered for this
payload type.
|
void |
addRtcpFeedbackType(RtcpFbPacketExtension rtcpFbPacketExtension)
Adds an RTCP feedback type 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.
|
java.lang.String |
getName()
Returns the name of the encoding, or as per the XEP: the appropriate
subtype of the MIME type.
|
java.util.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.
|
java.util.List<RtcpFbPacketExtension> |
getRtcpFeedbackTypeList()
Returns the list of RTCP feedback types currently registered for this
payload type.
|
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(java.lang.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.
|
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 CHANNELS_ATTR_NAME
public static final java.lang.String CLOCKRATE_ATTR_NAME
public static final java.lang.String ID_ATTR_NAME
public static final java.lang.String MAXPTIME_ATTR_NAME
public static final java.lang.String NAME_ATTR_NAME
public static final java.lang.String PTIME_ATTR_NAME
public PayloadTypePacketExtension()
PayloadTypePacketExtension
instance.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(java.lang.String name)
name
- the name of this encoding.public java.lang.String getName()
public void addParameter(ParameterPacketExtension parameter)
parameter
- an SDP parameter for this encoding.public java.util.List<ParameterPacketExtension> getParameters()
public void addRtcpFeedbackType(RtcpFbPacketExtension rtcpFbPacketExtension)
rtcpFbPacketExtension
- RTCP feedback type for this encoding.public java.util.List<RtcpFbPacketExtension> getRtcpFeedbackTypeList()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.