public class RTCPUtils extends Object
| Constructor and Description |
|---|
RTCPUtils()
Deprecated.
|
| Modifier and Type | Method and 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.
|
public static int getPacketType(byte[] buf,
int off,
int len)
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.public static int getPacketType(org.jitsi.utils.ByteArrayBuffer baf)
baf - the ByteArrayBuffer that contains the RTCP header.public static int getLength(byte[] buf,
int off,
int len)
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.public static int getReportCount(org.jitsi.utils.ByteArrayBuffer baf)
ByteArrayBuffer that is passed in as a parameter.baf - the ByteArrayBuffer that contains the RTCP header.ByteArrayBuffer that is passed in as a parameter, or -1 in case
of an error.public static int getLength(org.jitsi.utils.ByteArrayBuffer baf)
baf - the ByteArrayBuffer that contains the RTCP header.public static boolean isRtcp(byte[] buf,
int off,
int len)
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).buf - off - len - true if the described packet looks like RTCP.Copyright © 2021 jitsi.org. All rights reserved.