public class RtcpPacket
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
PT_APP
APP (Application-Defined) RTCP packet type
|
static int |
PT_BYE
BYE (Goodbye) RTCP packet type
|
static int |
PT_RR
RR (Receiver Report) RTCP packet type
|
static int |
PT_SDES
SDES (Source Description) RTCP packet type
|
static int |
PT_SR
SR (Sendr Report) RTCP packet type
|
Constructor and Description |
---|
RtcpPacket(byte[] buffer)
Creates a new RTCP packet.
|
RtcpPacket(byte[] buffer,
int offset)
Creates a new RTCP packet.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getPacketBuffer()
Gets the RTCP packet buffer.
|
int |
getPacketLength()
Gets the RTCP packet length.
|
int |
getPacketOffset()
Gets the RTCP packet offset within the buffer.
|
int |
getPaddingLength()
Gets padding length
|
int |
getPayloadType()
Gets the payload type (PT).
|
int |
getVersion()
Gets the version (V).
|
void |
setPacketLength(int len)
Sets the RTCP packet length.
|
void |
setPaddingLength(int padding_len)
Sets padding length.
|
void |
setPayloadType(int pt)
Sets the payload type (PT).
|
void |
setVersion(int v)
Sets the version (V).
|
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(byte[] buffer)
buffer
- buffer containing the RTCP packetpublic RtcpPacket(byte[] buffer, int offset)
buffer
- buffer containing the RTCP packetoffset
- packet offset within the bufferpublic byte[] getPacketBuffer()
public int getPacketOffset()
public int getVersion()
public void setVersion(int v)
v
- the RTP versionpublic int getPaddingLength()
public void setPaddingLength(int padding_len)
padding_len
- the number of padding bytespublic int getPayloadType()
public void setPayloadType(int pt)
pt
- the payload typepublic int getPacketLength()
public void setPacketLength(int len)
len
- the RTCP packet length including the header and any padding