public class RTCPPacket
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PT_APP
RTCP APP Packet
|
static int |
PT_BYE
RTCP BYE Packet
|
static int |
PT_RR
RTCP RR Packet
|
static int |
PT_SDES
RTCP SDES Packet
|
static int |
PT_SR
RTCP SR Packet
|
| Constructor and Description |
|---|
RTCPPacket(byte[] data,
int offset,
int length)
Creates a new RTCPPacket
|
RTCPPacket(java.net.DatagramPacket packet)
Creates a new RTCPPacket
|
RTCPPacket(RTCPHeader header,
byte[] data)
Creates a new RTCPPacket
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getRtcpData()
Returns the data contained in this packet.
|
RTCPHeader |
getRtcpHeader()
Returns the RTCP header of the packet.
|
int |
getRtcpLength()
Returns the length of the payload (the data contained in the packet, following
the header).
|
public static final int PT_SR
public static final int PT_RR
public static final int PT_SDES
public static final int PT_BYE
public static final int PT_APP
public RTCPPacket(java.net.DatagramPacket packet)
throws java.io.IOException
packet - The datagram to read the packet fromjava.io.IOException - I/O Exceptionpublic RTCPPacket(byte[] data,
int offset,
int length)
throws java.io.IOException
data - The data to read the packet fromoffset - The offset into the datalength - The length of the datajava.io.IOException - I/O Exceptionpublic RTCPPacket(RTCPHeader header, byte[] data)
header - The packet headerdata - The packet datapublic RTCPHeader getRtcpHeader()
public byte[] getRtcpData()
public int getRtcpLength()