public class RtpDescriptionPacketExtension extends AbstractPacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_NAME
The name of the "description" element.
|
static java.lang.String |
MEDIA_ATTR_NAME
The name of the media description argument.
|
static java.lang.String |
NAMESPACE
The name space for RTP description elements.
|
static java.lang.String |
SSRC_ATTR_NAME
The name of the ssrc description argument.
|
attributes
Constructor and Description |
---|
RtpDescriptionPacketExtension()
Creates a new RtpDescriptionPacketExtension.
|
RtpDescriptionPacketExtension(java.lang.String namespace)
Create a new RtpDescriptionPacketExtension with a different
namespace.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
Casts childExtension to one of the extensions allowed here and
sets the corresponding field.
|
void |
addExtmap(RTPHdrExtPacketExtension extmap)
Adds an optional extmap element that allows negotiation RTP
extension headers as per RFC 5282.
|
void |
addPayloadType(PayloadTypePacketExtension payloadType)
Adds a new payload type to this description element.
|
BandwidthPacketExtension |
getBandwidth()
Returns an optional bandwidth element that specifies the allowable or
preferred bandwidth for use by this application type.
|
java.util.List<? extends org.jivesoftware.smack.packet.PacketExtension> |
getChildExtensions()
Returns all child elements that we currently have in this packet.
|
EncryptionPacketExtension |
getEncryption()
Returns the optional encryption element that contains encryption
parameters for this session.
|
java.util.List<RTPHdrExtPacketExtension> |
getExtmapList()
Returns a List of the optional extmap elements that
allow negotiating RTP extension headers as per RFC 5282.
|
java.lang.String |
getMedia()
Returns the media type for the stream that this description element
represents, such as "audio" or "video".
|
java.util.List<PayloadTypePacketExtension> |
getPayloadTypes()
Returns a reference to the list of payload types that we have
registered with this description so far.
|
java.lang.String |
getSsrc()
Returns the synchronization source ID (SSRC as per RFC 3550) that the
stream represented by this description element will be using.
|
void |
setBandwidth(BandwidthPacketExtension bandwidth)
Sets an optional bandwidth element that specifies the allowable or
preferred bandwidth for use by this application type.
|
void |
setEncryption(EncryptionPacketExtension encryption)
Sets the optional encryption element that contains encryption parameters
for this session.
|
void |
setMedia(java.lang.String media)
Specifies the media type for the stream that this description element
represents, such as "audio" or "video".
|
void |
setSsrc(java.lang.String ssrc)
Sets the synchronization source ID (SSRC as per RFC 3550) that the stream
represented by this description element will be using.
|
addPacket, clone, getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, getChildExtensionsOfType, getElementName, getFirstChildOfType, getNamespace, getPackets, getText, removeAttribute, setAttribute, setNamespace, setText, toXML
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String MEDIA_ATTR_NAME
public static final java.lang.String SSRC_ATTR_NAME
public RtpDescriptionPacketExtension()
public RtpDescriptionPacketExtension(java.lang.String namespace)
namespace
- namespace to usepublic void setMedia(java.lang.String media)
media
- the media type for the stream that this element represents
such as "audio" or "video".public java.lang.String getMedia()
public void setSsrc(java.lang.String ssrc)
ssrc
- the SSRC ID that the RTP stream represented here will be
using.public java.lang.String getSsrc()
public void addPayloadType(PayloadTypePacketExtension payloadType)
payloadType
- the new payload to add.public java.util.List<PayloadTypePacketExtension> getPayloadTypes()
public java.util.List<? extends org.jivesoftware.smack.packet.PacketExtension> getChildExtensions()
getChildExtensions
in class AbstractPacketExtension
List
of child elements currently registered with
this packet.public void addChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
addChildExtension
in class AbstractPacketExtension
childExtension
- the extension we'd like to add here.public void setEncryption(EncryptionPacketExtension encryption)
encryption
- the encryption PacketExtension
we'd like to add
to this packet.public EncryptionPacketExtension getEncryption()
PacketExtension
added to this packet or
null if none has been set yet.public void setBandwidth(BandwidthPacketExtension bandwidth)
bandwidth
- the max/preferred bandwidth indication that we'd like
to add to this packet.public BandwidthPacketExtension getBandwidth()
public void addExtmap(RTPHdrExtPacketExtension extmap)
extmap
- an optional extmap element that allows negotiation
RTP extension headers as per RFC 5282.public java.util.List<RTPHdrExtPacketExtension> getExtmapList()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.