Class RTCPPacketParserEx


  • public class RTCPPacketParserEx
    extends net.sf.fmj.media.rtp.RTCPPacketParser
    Extends RTCPPacketParser to allow the parsing of additional RTCP packet types such as REMB, NACK and XR.
    Author:
    George Politis, Boris Grozev, Lyubomir Marinov
    • Constructor Detail

      • RTCPPacketParserEx

        public RTCPPacketParserEx()
    • Method Detail

      • toRawPacket

        public static RawPacket toRawPacket​(net.sf.fmj.media.rtp.RTCPPacket rtcp)
                                     throws IOException
        Initializes a new RawPacket instance from a specific RTCPPacket.
        Parameters:
        rtcp - the RTCPPacket to represent as a RawPacket
        Returns:
        a new RawPacket instance which represents the specified rtcp
        Throws:
        IOException - if an input/output error occurs during the serialization/writing of the binary representation of the specified rtcp
      • 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:
        parse in class net.sf.fmj.media.rtp.RTCPPacketParser
        Parameters:
        base -
        firstbyte - the first byte of the RTCP packet
        type - the packet type of the RTCP packet
        length - 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.BadFormatException
        IOException