public class SrRtcpPacket extends RrRtcpPacket
Modifier and Type | Class and Description |
---|---|
static class |
SrRtcpPacket.SenderInfo
Sender info.
|
RrRtcpPacket.ReportBlock
Constructor and Description |
---|
SrRtcpPacket(byte[] buffer)
Creates a new SR RTCP packet.
|
SrRtcpPacket(byte[] buffer,
int offset)
Creates a new SR RTCP packet.
|
SrRtcpPacket(long ssrc,
long ntp_timestamp,
long rtp_timestamp,
long packet_count,
long octect_count)
Creates a new SR RTCP packet.
|
SrRtcpPacket(long ssrc,
SrRtcpPacket.SenderInfo sender_info)
Creates a new SR RTCP packet.
|
SrRtcpPacket(long ssrc,
SrRtcpPacket.SenderInfo sender_info,
RrRtcpPacket.ReportBlock[] report_blocks)
Creates a new SR RTCP packet.
|
SrRtcpPacket(RtcpPacket rp)
Creates a new SR RTCP packet.
|
Modifier and Type | Method and Description |
---|---|
SrRtcpPacket.SenderInfo |
getSenderInfo()
Gets SenderInfo.
|
protected static int |
receptionReportOffset()
Gets the relative reception report offset.
|
void |
setSenderInfo(SrRtcpPacket.SenderInfo sender_info)
Sets SenderInfo.
|
getReceptionReportCount, getReportBlocks, getSsrc, setReceptionReportCount, setReportBlocks, setSsrc
getPacketBuffer, getPacketLength, getPacketOffset, getPaddingLength, getPayloadType, getVersion, setPacketLength, setPaddingLength, setPayloadType, setVersion
public SrRtcpPacket(RtcpPacket rp)
public SrRtcpPacket(byte[] buffer)
public SrRtcpPacket(byte[] buffer, int offset)
public SrRtcpPacket(long ssrc, long ntp_timestamp, long rtp_timestamp, long packet_count, long octect_count)
ssrc
- the synchronization source identifier (SSRC) for the originator of this SR packetntp_timestamp
- the wallclock time (NTP timestamp) when this report is sent, in Java formatrtp_timestamp
- the same time as the NTP timestamp, but in the same units and with the same random offset as the RTP timestamps in data packetspacket_count
- the total number of RTP data packets transmitted by the sender since starting transmission up until the time this SR packet was generatedoctect_count
- the total number of payload octets (i.e., not including header or padding) transmitted in RTP data packets by the sender since starting transmission up until the time this SR packet was generatedpublic SrRtcpPacket(long ssrc, SrRtcpPacket.SenderInfo sender_info)
ssrc
- the synchronization source identifier (SSRC) for the originator of this SR packetsender_info
- the sender info for this SR packet.public SrRtcpPacket(long ssrc, SrRtcpPacket.SenderInfo sender_info, RrRtcpPacket.ReportBlock[] report_blocks)
ssrc
- the synchronization source identifier (SSRC) for the originator of this SR packetsender_info
- the sender info for this SR packetreport_blocks
- array of report blocks for this SR packetprotected static int receptionReportOffset()
public SrRtcpPacket.SenderInfo getSenderInfo()
public void setSenderInfo(SrRtcpPacket.SenderInfo sender_info)
sender_info
- the sender info for this SR packet