Package org.jitsi.impl.neomedia.rtcp
Class RTCPPacketParserEx
- java.lang.Object
-
- net.sf.fmj.media.rtp.RTCPPacketParser
-
- org.jitsi.impl.neomedia.rtcp.RTCPPacketParserEx
-
public class RTCPPacketParserEx extends net.sf.fmj.media.rtp.RTCPPacketParserExtendsRTCPPacketParserto allow the parsing of additional RTCP packet types such as REMB, NACK and XR.- Author:
- George Politis, Boris Grozev, Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description RTCPPacketParserEx()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description net.sf.fmj.media.rtp.RTCPPacketparse(byte[] data, int offset, int length)protected net.sf.fmj.media.rtp.RTCPPacketparse(net.sf.fmj.media.rtp.RTCPCompoundPacket base, int firstbyte, int type, int length, DataInputStream in)static RawPackettoRawPacket(net.sf.fmj.media.rtp.RTCPPacket rtcp)Initializes a newRawPacketinstance from a specificRTCPPacket.
-
-
-
Method Detail
-
toRawPacket
public static RawPacket toRawPacket(net.sf.fmj.media.rtp.RTCPPacket rtcp) throws IOException
Initializes a newRawPacketinstance from a specificRTCPPacket.- Parameters:
rtcp- theRTCPPacketto represent as aRawPacket- Returns:
- a new
RawPacketinstance which represents the specifiedrtcp - Throws:
IOException- if an input/output error occurs during the serialization/writing of the binary representation of the specifiedrtcp
-
parse
public net.sf.fmj.media.rtp.RTCPPacket parse(byte[] data, int offset, int length) throws net.sf.fmj.media.rtp.util.BadFormatException- Throws:
net.sf.fmj.media.rtp.util.BadFormatException
-
parse
protected net.sf.fmj.media.rtp.RTCPPacket parse(net.sf.fmj.media.rtp.RTCPCompoundPacket base, int firstbyte, int type, int length, DataInputStream in) throws net.sf.fmj.media.rtp.util.BadFormatException, IOException- Overrides:
parsein classnet.sf.fmj.media.rtp.RTCPPacketParser- Parameters:
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.- Returns:
- Throws:
net.sf.fmj.media.rtp.util.BadFormatExceptionIOException
-
-