public class SdesRtcpPacket extends RtcpPacket
Modifier and Type | Class and Description |
---|---|
static class |
SdesRtcpPacket.Chunk
SSRC or CSRC chunk.
|
static class |
SdesRtcpPacket.SdesItem
SDES item.
|
Modifier and Type | Field and Description |
---|---|
static int |
ITEM_CNAME
CNAME: Canonical End-Point Identifier SDES Item
|
static int |
ITEM_EMAIL
EMAIL: Electronic Mail Address SDES Item
|
static int |
ITEM_LOC
LOC: Geographic User Location SDES Item
|
static int |
ITEM_NAME
NAME: User Name SDES Item
|
static int |
ITEM_NOTE
NOTE: Notice/Status SDES Item
|
static int |
ITEM_PHONE
PHONE: Phone Number SDES Item
|
static int |
ITEM_PRIV
PRIV: Private Extensions SDES Item
|
static int |
ITEM_TOOL
TOOL: Application or Tool Name SDES Item
|
Constructor and Description |
---|
SdesRtcpPacket(byte[] buffer)
Creates a new SDES RTCP packet.
|
SdesRtcpPacket(byte[] buffer,
int offset)
Creates a new SDES RTCP packet.
|
SdesRtcpPacket(long ssrc,
java.lang.String cname)
Creates a new SDES RTCP packet.
|
SdesRtcpPacket(RtcpPacket rp)
Creates a new SDES RTCP packet.
|
SdesRtcpPacket(SdesRtcpPacket.Chunk[] chunks)
Creates a new SDES RTCP packet.
|
Modifier and Type | Method and Description |
---|---|
SdesRtcpPacket.Chunk[] |
getChunks()
Gets chunks.
|
protected int |
getSourceCount()
Gets the source count (SC).
|
protected void |
setSourceCount(int rc)
Sets the source count (SC).
|
java.lang.String |
toString()
Gets a string representation of this object.
|
getPacketBuffer, getPacketLength, getPacketOffset, getPaddingLength, getPayloadType, getVersion, setPacketLength, setPaddingLength, setPayloadType, setVersion
public static final int ITEM_CNAME
public static final int ITEM_NAME
public static final int ITEM_EMAIL
public static final int ITEM_PHONE
public static final int ITEM_LOC
public static final int ITEM_TOOL
public static final int ITEM_NOTE
public static final int ITEM_PRIV
public SdesRtcpPacket(RtcpPacket rp)
rp
- the RTCP SDES packetpublic SdesRtcpPacket(byte[] buffer)
buffer
- buffer containing the RTCP SDES packetpublic SdesRtcpPacket(byte[] buffer, int offset)
buffer
- buffer containing the RTCP SDES packetoffset
- packet offset within the bufferpublic SdesRtcpPacket(SdesRtcpPacket.Chunk[] chunks)
chunks
- array of SDES chunkspublic SdesRtcpPacket(long ssrc, java.lang.String cname)
ssrc
- the SSRC identifiercname
- canonical end-point identifier (CNAME)protected int getSourceCount()
protected void setSourceCount(int rc)
rc
- the source count (SC)public SdesRtcpPacket.Chunk[] getChunks()
public java.lang.String toString()
toString
in class java.lang.Object