public class CompRtcpPkt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
problem
Problem indicator, negative values denote packet type that cause problem
|
protected java.util.LinkedList<RtcpPkt> |
rtcpPkts
Stores the different subclasses of RtcpPkt that make up the compound packet
|
Modifier | Constructor and Description |
---|---|
protected |
CompRtcpPkt()
Instantiates an empty Compound RTCP packet to which you can add RTCP packets
|
protected |
CompRtcpPkt(byte[] rawPkt,
int packetSize,
java.net.InetSocketAddress adr,
RTPSession rtpSession)
Picks a received Compound RTCP packet apart.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPacket(RtcpPkt aPkt)
Add a RTCP packet to the compound packet.
|
protected byte[] |
encode()
Encode combines the RTCP packets in this.rtcpPkts into a byte[]
by calling the encode() function on each of them individually.
|
protected int problem
protected java.util.LinkedList<RtcpPkt> rtcpPkts
protected CompRtcpPkt()
protected CompRtcpPkt(byte[] rawPkt, int packetSize, java.net.InetSocketAddress adr, RTPSession rtpSession)
rawPkt
- the byte array received from the socketpacketSize
- the actual number of used bytesadr
- the socket address from which the packet was receivedrtpSession
- the RTPSession with the participant databaseprotected void addPacket(RtcpPkt aPkt)
aPkt
- the packet to be addedprotected byte[] encode()