Class RTCPUtils


  • public class RTCPUtils
    extends Object
    Deprecated.
    Use org.jitsi.rtp.rtcp.RtcpHeader and maybe others (requires Kotlin)
    Utility class that contains static methods for RTCP header manipulation.
    Author:
    George Politis
    • Constructor Summary

      Constructors 
      Constructor Description
      RTCPUtils()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static int getLength​(byte[] buf, int off, int len)
      Deprecated.
      Gets the RTCP packet length in bytes as specified by the length field of the RTCP packet (does not verify that the buffer is actually large enough).
      static int getLength​(org.jitsi.utils.ByteArrayBuffer baf)
      Deprecated.
      Gets the RTCP packet length in bytes.
      static int getPacketType​(byte[] buf, int off, int len)
      Deprecated.
      Gets the RTCP packet type.
      static int getPacketType​(org.jitsi.utils.ByteArrayBuffer baf)
      Deprecated.
      Gets the RTCP packet type.
      static int getReportCount​(org.jitsi.utils.ByteArrayBuffer baf)
      Deprecated.
      Gets the report count field of the RTCP packet specified in the ByteArrayBuffer that is passed in as a parameter.
      static boolean isRtcp​(byte[] buf, int off, int len)
      Deprecated.
      Checks whether the buffer described by the parameters looks like an RTCP packet.
    • Constructor Detail

      • RTCPUtils

        public RTCPUtils()
        Deprecated.
    • Method Detail

      • getPacketType

        public static int getPacketType​(byte[] buf,
                                        int off,
                                        int len)
        Deprecated.
        Gets the RTCP packet type.
        Parameters:
        buf - the byte buffer that contains the RTCP header.
        off - the offset in the byte buffer where the RTCP header starts.
        len - the number of bytes in buffer which constitute the actual data.
        Returns:
        the unsigned RTCP packet type, or -1 in case of an error.
      • getPacketType

        public static int getPacketType​(org.jitsi.utils.ByteArrayBuffer baf)
        Deprecated.
        Gets the RTCP packet type.
        Parameters:
        baf - the ByteArrayBuffer that contains the RTCP header.
        Returns:
        the unsigned RTCP packet type, or -1 in case of an error.
      • getLength

        public static int getLength​(byte[] buf,
                                    int off,
                                    int len)
        Deprecated.
        Gets the RTCP packet length in bytes as specified by the length field of the RTCP packet (does not verify that the buffer is actually large enough).
        Parameters:
        buf - the byte buffer that contains the RTCP header.
        off - the offset in the byte buffer where the RTCP header starts.
        len - the number of bytes in buffer which constitute the actual data.
        Returns:
        the RTCP packet length in bytes, or -1 in case of an error.
      • getReportCount

        public static int getReportCount​(org.jitsi.utils.ByteArrayBuffer baf)
        Deprecated.
        Gets the report count field of the RTCP packet specified in the ByteArrayBuffer that is passed in as a parameter.
        Parameters:
        baf - the ByteArrayBuffer that contains the RTCP header.
        Returns:
        the report count field of the RTCP packet specified in the ByteArrayBuffer that is passed in as a parameter, or -1 in case of an error.
      • getLength

        public static int getLength​(org.jitsi.utils.ByteArrayBuffer baf)
        Deprecated.
        Gets the RTCP packet length in bytes.
        Parameters:
        baf - the ByteArrayBuffer that contains the RTCP header.
        Returns:
        the RTCP packet length in bytes, or -1 in case of an error.
      • isRtcp

        public static boolean isRtcp​(byte[] buf,
                                     int off,
                                     int len)
        Deprecated.
        Checks whether the buffer described by the parameters looks like an RTCP packet. It only checks the Version and Packet Type fields, as well as a minimum length. This method returning true does not necessarily mean that the given packet is a valid RTCP packet, but it should be parsed as RTCP (as opposed to as e.g. RTP or STUN).
        Parameters:
        buf -
        off -
        len -
        Returns:
        true if the described packet looks like RTCP.