|
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.RtpDescriptionPacketExtension
public class RtpDescriptionPacketExtension
Represents the content description elements described in XEP-0167.
| Field Summary | |
|---|---|
static String |
ELEMENT_NAME
The name of the "description" element. |
static String |
MEDIA_ATTR_NAME
The name of the media description argument. |
static String |
NAMESPACE
The name space for RTP description elements. |
static String |
SSRC_ATTR_NAME
The name of the ssrc description argument. |
| Fields inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
|---|
attributes |
| Constructor Summary | |
|---|---|
RtpDescriptionPacketExtension()
Creates a new RtpDescriptionPacketExtension. |
|
RtpDescriptionPacketExtension(String namespace)
Create a new RtpDescriptionPacketExtension with a different namespace. |
|
| Method Summary | |
|---|---|
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. |
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. |
List<RTPHdrExtPacketExtension> |
getExtmapList()
Returns a List of the optional extmap elements that allow negotiating RTP extension headers as per RFC 5282. |
String |
getMedia()
Returns the media type for the stream that this description element represents, such as "audio" or "video". |
List<PayloadTypePacketExtension> |
getPayloadTypes()
Returns a reference to the list of payload types that we have registered with this description so far. |
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(String media)
Specifies the media type for the stream that this description element represents, such as "audio" or "video". |
void |
setSsrc(String ssrc)
Sets the synchronization source ID (SSRC as per RFC 3550) that the stream represented by this description element will be using. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.jabber.extensions.AbstractPacketExtension |
|---|
getAttribute, getAttributeAsInt, getAttributeAsInt, getAttributeAsString, getAttributeAsURI, getAttributeNames, 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 NAMESPACE
public static final String ELEMENT_NAME
public static final String MEDIA_ATTR_NAME
public static final String SSRC_ATTR_NAME
| Constructor Detail |
|---|
public RtpDescriptionPacketExtension()
public RtpDescriptionPacketExtension(String namespace)
namespace - namespace to use| Method Detail |
|---|
public void setMedia(String media)
media - the media type for the stream that this element represents
such as "audio" or "video".public String getMedia()
public void setSsrc(String ssrc)
ssrc - the SSRC ID that the RTP stream represented here will be
using.public String getSsrc()
public void addPayloadType(PayloadTypePacketExtension payloadType)
payloadType - the new payload to add.public List<PayloadTypePacketExtension> getPayloadTypes()
public List<? extends org.jivesoftware.smack.packet.PacketExtension> getChildExtensions()
getChildExtensions in class AbstractPacketExtensionList of child elements currently registered with
this packet.public void addChildExtension(org.jivesoftware.smack.packet.PacketExtension childExtension)
addChildExtension in class AbstractPacketExtensionchildExtension - 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 List<RTPHdrExtPacketExtension> getExtmapList()
|
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 | |||||||||