public class RTCPPacketParserEx
extends net.sf.fmj.media.rtp.RTCPPacketParser
RTCPPacketParser
to allow the parsing of additional RTCP
packet types such as REMB, NACK and XR.Constructor and Description |
---|
RTCPPacketParserEx() |
Modifier and Type | Method and Description |
---|---|
net.sf.fmj.media.rtp.RTCPPacket |
parse(byte[] data,
int offset,
int length) |
protected net.sf.fmj.media.rtp.RTCPPacket |
parse(net.sf.fmj.media.rtp.RTCPCompoundPacket base,
int firstbyte,
int type,
int length,
java.io.DataInputStream in) |
static RawPacket |
toRawPacket(net.sf.fmj.media.rtp.RTCPPacket rtcp)
Initializes a new
RawPacket instance from a specific
RTCPPacket . |
public static RawPacket toRawPacket(net.sf.fmj.media.rtp.RTCPPacket rtcp) throws java.io.IOException
RawPacket
instance from a specific
RTCPPacket
.rtcp
- the RTCPPacket
to represent as a RawPacket
RawPacket
instance which represents the specified
rtcp
java.io.IOException
- if an input/output error occurs during the
serialization/writing of the binary representation of the specified
rtcp
public net.sf.fmj.media.rtp.RTCPPacket parse(byte[] data, int offset, int length) throws net.sf.fmj.media.rtp.util.BadFormatException
net.sf.fmj.media.rtp.util.BadFormatException
protected net.sf.fmj.media.rtp.RTCPPacket parse(net.sf.fmj.media.rtp.RTCPCompoundPacket base, int firstbyte, int type, int length, java.io.DataInputStream in) throws net.sf.fmj.media.rtp.util.BadFormatException, java.io.IOException
parse
in class net.sf.fmj.media.rtp.RTCPPacketParser
base
- firstbyte
- the first byte of the RTCP packettype
- the packet type of the RTCP packetlength
- the length in bytes of the RTCP packet, including all
headers and excluding padding.in
- the binary representation from which the new
instance is to be initialized, excluding the first 4 bytes.net.sf.fmj.media.rtp.util.BadFormatException
java.io.IOException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.