Package org.jitsi.util
Class RTCPUtils
- java.lang.Object
-
- org.jitsi.util.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 intgetLength(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 intgetLength(org.jitsi.utils.ByteArrayBuffer baf)Deprecated.Gets the RTCP packet length in bytes.static intgetPacketType(byte[] buf, int off, int len)Deprecated.Gets the RTCP packet type.static intgetPacketType(org.jitsi.utils.ByteArrayBuffer baf)Deprecated.Gets the RTCP packet type.static intgetReportCount(org.jitsi.utils.ByteArrayBuffer baf)Deprecated.Gets the report count field of the RTCP packet specified in theByteArrayBufferthat is passed in as a parameter.static booleanisRtcp(byte[] buf, int off, int len)Deprecated.Checks whether the buffer described by the parameters looks like an RTCP packet.
-
-
-
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- theByteArrayBufferthat 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 theByteArrayBufferthat is passed in as a parameter.- Parameters:
baf- theByteArrayBufferthat contains the RTCP header.- Returns:
- the report count field of the RTCP packet specified in the
ByteArrayBufferthat 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- theByteArrayBufferthat 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 returningtruedoes 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:
trueif the described packet looks like RTCP.
-
-