public class ByePacket extends RTCPPacket
Constructor and Description |
---|
ByePacket()
Contructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSsrc(java.lang.Long ssrc,
java.lang.String reason)
Create an element of BYE packet.
|
byte[] |
createPacket()
Method to create a BYE packet.
|
static java.util.ArrayList<java.lang.Long> |
decodeSsrc(byte[] data,
java.lang.Integer offset)
List all SSRC present in a RTCP BYE.
|
java.lang.Integer |
getPacketType()
Returns the packet type.
|
createRtcpPacket, decodeCount, decodeLength, decodePacketType, decodePadding, decodeTwoComplement, decodeTwoComplement, decodeVersion, getRtcpPackets, packetTypeAvailable
public byte[] createPacket()
createPacket
in class RTCPPacket
public void addSsrc(java.lang.Long ssrc, java.lang.String reason)
ssrc
- : the SSRC associated to the report.reason
- : the reason for leaving the session (optional). Can be empty.public java.lang.Integer getPacketType()
getPacketType
in class RTCPPacket
public static java.util.ArrayList<java.lang.Long> decodeSsrc(byte[] data, java.lang.Integer offset)
data
- : the data to decode.offset
- : the beginning of the report.