public class RTCPHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SDES_CNAME
An SDES CNAME header
|
static int |
SDES_EMAIL
An SDES EMAIL header
|
static int |
SDES_LOC
An SDES LOC header
|
static int |
SDES_NAME
An SDES NAME header
|
static int |
SDES_NOTE
An SDES NOTE header
|
static int |
SDES_PHONE
An SDES PHONE header
|
static int |
SDES_SKIP
The number of bytes to skip for a SDES header
|
static int |
SDES_TOOL
An SDES TOOL header
|
static int |
SIZE
The size of the header in bytes
|
static int |
VERSION
The current RTP version
|
Constructor and Description |
---|
RTCPHeader(byte[] data,
int offset,
int length)
Creates a new RTCPHeader
|
RTCPHeader(java.net.DatagramPacket packet)
Creates a new RTCPHeader
|
Modifier and Type | Method and Description |
---|---|
int |
getFlags()
Returns the RTCP header flags.
|
int |
getLength()
Returns the length of the RTCP packet
|
short |
getPacketType()
Returns the type of RTCP packet (SR || RR)
|
short |
getPadding()
Returns the value of the padding bit, indicating if this individual RTCP packet
contains some additional padding octets at the end which are not part of
the control information but are included in the length field
|
short |
getReceptionCount()
Returns the reception report count (RC).
|
long |
getSsrc()
Returns the SSRC being described by this packet.
|
short |
getVersion()
Returns the version of the RTCP packet
|
void |
print()
Displays the header
|
public static final int VERSION
public static final int SDES_SKIP
public static final int SDES_CNAME
public static final int SDES_NAME
public static final int SDES_EMAIL
public static final int SDES_PHONE
public static final int SDES_LOC
public static final int SDES_TOOL
public static final int SDES_NOTE
public static final int SIZE
public RTCPHeader(java.net.DatagramPacket packet) throws java.io.IOException
packet
- The packet from which to parse the headerjava.io.IOException
- I/O Exceptionpublic RTCPHeader(byte[] data, int offset, int length) throws java.io.IOException
data
- The data to read the header fromoffset
- The offset in the data to startlength
- The length of the data to readjava.io.IOException
- I/O Exceptionpublic int getFlags()
public short getVersion()
public short getPadding()
public short getReceptionCount()
public short getPacketType()
public int getLength()
public long getSsrc()
public void print()