public class RTCPSenderInfoUtils extends 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(org.jitsi.utils.ByteArrayBuffer baf)
Gets the RTP timestamp from an SR.
|
static boolean |
isValid(byte[] buf,
int off,
int len) |
static int |
setOctetCount(org.jitsi.utils.ByteArrayBuffer baf,
int octetCount)
Sets the octet count in the SR that is specified in the arguments.
|
static int |
setPacketCount(org.jitsi.utils.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(org.jitsi.utils.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(org.jitsi.utils.ByteArrayBuffer baf,
int ts)
baf - the ByteArrayBuffer that holds the SR.ts - the new timestamp to be set.public static long getTimestamp(org.jitsi.utils.ByteArrayBuffer baf)
baf - the ByteArrayBuffer that holds the SR.public static int setOctetCount(org.jitsi.utils.ByteArrayBuffer baf,
int octetCount)
baf - the ByteArrayBuffer that holds the SR.octetCount - the octet count ot set.public static int setPacketCount(org.jitsi.utils.ByteArrayBuffer baf,
int packetCount)
packetCount - the packet count to set.baf - the ByteArrayBuffer that holds the SR.Copyright © 2022 jitsi.org. All rights reserved.