public class RtcpPktSR extends RtcpPkt
Modifier and Type | Field and Description |
---|---|
protected long |
ntpTs1
NTP timestamp, MSB
|
protected long |
ntpTs2
NTP timestamp, LSB
|
protected RtcpPktRR |
rReports
RR packet with receiver reports that we can append
|
protected long |
rtpTs
RTP timestamp
|
protected long |
sendersOctCount
Senders octet count
|
protected long |
sendersPktCount
Senders packet count
|
Modifier | Constructor and Description |
---|---|
protected |
RtcpPktSR(byte[] aRawPkt,
int start,
int length)
Constructor that parses a received packet
|
protected |
RtcpPktSR(long ssrc,
long pktCount,
long octCount,
RtcpPktRR rReports)
Constructor for a new Sender Report packet
|
Modifier and Type | Method and Description |
---|---|
void |
debugPrint()
Debug purposes only
|
protected void |
encode()
Encode the packet into a byte[], saved in .rawPkt
CompRtcpPkt will call this automatically
|
check, parseHeaders, writeHeaders
protected long ntpTs1
protected long ntpTs2
protected long rtpTs
protected long sendersPktCount
protected long sendersOctCount
protected RtcpPktRR rReports
protected RtcpPktSR(long ssrc, long pktCount, long octCount, RtcpPktRR rReports)
ssrc
- the senders SSRC, presumably from RTPSessionpktCount
- packets sent in this sessionoctCount
- octets sent in this sessionrReports
- receiver reports, as RR packets, to be included in this packetprotected RtcpPktSR(byte[] aRawPkt, int start, int length)
aRawPkt
- the raw packetstart
- the position at which SR startslength
- used to determine number of included receiver reports