public class RrRtcpPacket extends RtcpPacket
Modifier and Type | Class and Description |
---|---|
static class |
RrRtcpPacket.ReportBlock
Report block.
|
Constructor and Description |
---|
RrRtcpPacket(byte[] buffer)
Creates a new RR RTCP packet.
|
RrRtcpPacket(byte[] buffer,
int offset)
Creates a new RR RTCP packet.
|
RrRtcpPacket(long ssrc,
RrRtcpPacket.ReportBlock[] report_blocks)
Creates a new RR RTCP packet.
|
RrRtcpPacket(RtcpPacket rp)
Creates a new RR RTCP packet.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getReceptionReportCount()
Gets the reception report count (RC).
|
RrRtcpPacket.ReportBlock[] |
getReportBlocks()
Gets the report blocks.
|
long |
getSsrc()
Gets the SSRC.
|
protected static int |
receptionReportOffset()
Gets the relative reception report offset.
|
protected void |
setReceptionReportCount(int rc)
Sets the reception report count (RC).
|
void |
setReportBlocks(RrRtcpPacket.ReportBlock[] report_blocks)
Sets the report blocks.
|
void |
setSsrc(long ssrc)
Sets the SSRC.
|
getPacketBuffer, getPacketLength, getPacketOffset, getPaddingLength, getPayloadType, getVersion, setPacketLength, setPaddingLength, setPayloadType, setVersion
public RrRtcpPacket(RtcpPacket rp)
public RrRtcpPacket(byte[] buffer)
public RrRtcpPacket(byte[] buffer, int offset)
public RrRtcpPacket(long ssrc, RrRtcpPacket.ReportBlock[] report_blocks)
ssrc
- the synchronization source identifier (SSRC) for the originator of this SR packetreport_blocks
- array of report blocks for this SR packetprotected static int receptionReportOffset()
protected int getReceptionReportCount()
protected void setReceptionReportCount(int rc)
public long getSsrc()
public void setSsrc(long ssrc)
ssrc
- the synchronization source identifier (SSRC) for the originator of this SR packet.public RrRtcpPacket.ReportBlock[] getReportBlocks()
public void setReportBlocks(RrRtcpPacket.ReportBlock[] report_blocks)
report_blocks
- array of report blocks for this SR packet.