public class RTCPSenderInfoUtils
extends java.lang.Object
Constructor and Description |
---|
RTCPSenderInfoUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
getTimestamp(byte[] buf,
int off,
int len)
Gets the RTP timestamp from an SR.
|
static long |
getTimestamp(ByteArrayBuffer baf)
Gets the RTP timestamp from an SR.
|
static boolean |
isValid(byte[] buf,
int off,
int len) |
static int |
setOctetCount(ByteArrayBuffer baf,
int octetCount)
Sets the octet count in the SR that is specified in the arguments.
|
static int |
setPacketCount(ByteArrayBuffer baf,
int packetCount)
Sets the packet count in the SR that is specified in the arguments.
|
static int |
setTimestamp(byte[] buf,
int off,
int len,
int ts)
Sets the RTP timestamp in an SR.
|
static int |
setTimestamp(ByteArrayBuffer baf,
int ts)
Sets the RTP timestamp in an SR.
|
public static long getTimestamp(byte[] buf, int off, int len)
buf
- the byte buffer that contains the RTCP sender report.off
- the offset in the byte buffer where the RTCP sender report
starts.len
- the number of bytes in buffer which constitute the actual
data.public static int setTimestamp(byte[] buf, int off, int len, int ts)
buf
- the byte buffer that contains the RTCP sender report.off
- the offset in the byte buffer where the RTCP sender report
starts.len
- the number of bytes in buffer which constitute the actual
data.ts
- the new timestamp to be set.public static boolean isValid(byte[] buf, int off, int len)
buf
- the byte buffer that contains the RTCP sender info.off
- the offset in the byte buffer where the RTCP sender info
starts.len
- the number of bytes in buffer which constitute the actual
data.public static int setTimestamp(ByteArrayBuffer baf, int ts)
baf
- the ByteArrayBuffer
that holds the SR.ts
- the new timestamp to be set.public static long getTimestamp(ByteArrayBuffer baf)
baf
- the ByteArrayBuffer
that holds the SR.public static int setOctetCount(ByteArrayBuffer baf, int octetCount)
baf
- the ByteArrayBuffer
that holds the SR.octetCount
- the octet count ot set.public static int setPacketCount(ByteArrayBuffer baf, int packetCount)
packetCount
- the packet count to set.baf
- the ByteArrayBuffer
that holds the SR.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.