public class SDESPacket extends RTCPPacket
Constructor and Description |
---|
SDESPacket()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSdesItem(java.lang.Long ssrc,
byte[] item)
Add an item the SDES packet.
|
byte[] |
createItem(java.lang.Integer type,
java.lang.String value)
Create an item to add in an SDES packet.
|
byte[] |
createPacket()
Method to create a SDES packet.
|
java.lang.Integer |
getItemType(java.lang.String name)
Returns the value associated to the item name.
|
java.lang.Integer |
getPacketType()
Returns the packet type.
|
createRtcpPacket, decodeCount, decodeLength, decodePacketType, decodePadding, decodeTwoComplement, decodeTwoComplement, decodeVersion, getRtcpPackets, packetTypeAvailable
public byte[] createPacket()
createPacket
in class RTCPPacket
public void addSdesItem(java.lang.Long ssrc, byte[] item)
ssrc
- : the SSRC associated to the item.item
- : the item to add to the packet.public byte[] createItem(java.lang.Integer type, java.lang.String value)
type
- : the numerical type of item.value
- : the value to add to the item.public java.lang.Integer getItemType(java.lang.String name)
name
- : the item type (not case sensitive).public java.lang.Integer getPacketType()
getPacketType
in class RTCPPacket