public class AppPacket extends RTCPPacket
Constructor and Description |
---|
AppPacket(java.lang.Integer subtype,
java.lang.Long ssrc,
java.lang.String name,
java.lang.String data)
Constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
createPacket()
Method to create a APP packet.
|
java.lang.Long |
decodeName(byte[] data,
java.lang.Integer offset)
Decode Name from a APP packet.
|
java.lang.Long |
decodeSsrc(byte[] data,
java.lang.Integer offset)
Decode SSRC from a APP packet.
|
java.lang.Integer |
getPacketType()
Returns the packet type.
|
createRtcpPacket, decodeCount, decodeLength, decodePacketType, decodePadding, decodeTwoComplement, decodeTwoComplement, decodeVersion, getRtcpPackets, packetTypeAvailable
public AppPacket(java.lang.Integer subtype, java.lang.Long ssrc, java.lang.String name, java.lang.String data)
subtype
- : the subtype of the packet.ssrc
- : the SSRC of the packet.name
- : the name of the packet.data
- : the data to transmit in the packet (must be less than 500 bytes).public byte[] createPacket()
createPacket
in class RTCPPacket
public java.lang.Integer getPacketType()
getPacketType
in class RTCPPacket
public java.lang.Long decodeSsrc(byte[] data, java.lang.Integer offset)
data
- : the data to decode.offset
- : the beginning of the report.public java.lang.Long decodeName(byte[] data, java.lang.Integer offset)
data
- : the data to decode.offset
- : the beginning of the report.