public class RtcStats
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
connectionId
Connection ID
|
private int |
connectTimeMs
Connection time (ms)
|
private double |
cpuAppUsage
CPU app usage (%)
|
private double |
cpuTotalUsage
CPU total usage (%)
|
private int |
duration
Duration (s)
|
private int |
firstAudioPacketDuration
First audio packet duration (ms)
|
private int |
firstAudioPacketDurationAfterUnmute
First audio packet duration after unmute (ms)
|
private int |
firstVideoKeyFrameDecodedDurationAfterUnmute
First video key frame decoded duration after unmute (ms)
|
private int |
firstVideoKeyFramePacketDuration
First video key frame packet duration (ms)
|
private int |
firstVideoKeyFramePacketDurationAfterUnmute
First video key frame packet duration after unmute (ms)
|
private int |
firstVideoKeyFrameRenderedDurationAfterUnmute
First video key frame rendered duration after unmute (ms)
|
private int |
firstVideoPacketDuration
First video packet duration (ms)
|
private int |
firstVideoPacketDurationAfterUnmute
First video packet duration after unmute (ms)
|
private int |
gatewayRtt
Gateway RTT (ms)
|
private short |
lastmileDelay
Last-mile delay (ms)
|
private int |
memoryAppUsageInKbytes
Memory app usage (KB)
|
private double |
memoryAppUsageRatio
Memory app usage ratio (%)
|
private double |
memoryTotalUsageRatio
Memory total usage ratio (%)
|
private int |
packetsBeforeFirstKeyFramePacket
Packets before first key frame packet
|
private int |
rxAudioBytes
Audio bytes received
|
private short |
rxAudioKBitRate
Receive audio bitrate (Kbps)
|
private int |
rxBytes
Total bytes received
|
private short |
rxKBitRate
Receive bitrate (Kbps)
|
private int |
rxPacketLossRate
Receive packet loss rate (%)
|
private int |
rxVideoBytes
Video bytes received
|
private short |
rxVideoKBitRate
Receive video bitrate (Kbps)
|
private int |
txAudioBytes
Audio bytes sent
|
private short |
txAudioKBitRate
Send audio bitrate (Kbps)
|
private int |
txBytes
Total bytes sent
|
private short |
txKBitRate
Send bitrate (Kbps)
|
private int |
txPacketLossRate
Send packet loss rate (%)
|
private int |
txVideoBytes
Video bytes sent
|
private short |
txVideoKBitRate
Send video bitrate (Kbps)
|
private int |
userCount
User count
|
| Constructor and Description |
|---|
RtcStats()
Default constructor for RtcStats.
|
RtcStats(int connectionId,
int duration,
int txBytes,
int rxBytes,
int txAudioBytes,
int txVideoBytes,
int rxAudioBytes,
int rxVideoBytes,
short txKBitRate,
short rxKBitRate,
short rxAudioKBitRate,
short txAudioKBitRate,
short rxVideoKBitRate,
short txVideoKBitRate,
short lastmileDelay,
int userCount,
double cpuAppUsage,
double cpuTotalUsage,
int gatewayRtt,
double memoryAppUsageRatio,
double memoryTotalUsageRatio,
int memoryAppUsageInKbytes,
int connectTimeMs,
int firstAudioPacketDuration,
int firstVideoPacketDuration,
int firstVideoKeyFramePacketDuration,
int packetsBeforeFirstKeyFramePacket,
int firstAudioPacketDurationAfterUnmute,
int firstVideoPacketDurationAfterUnmute,
int firstVideoKeyFramePacketDurationAfterUnmute,
int firstVideoKeyFrameDecodedDurationAfterUnmute,
int firstVideoKeyFrameRenderedDurationAfterUnmute,
int txPacketLossRate,
int rxPacketLossRate)
Constructs RtcStats with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectionId()
Gets the connection ID.
|
int |
getConnectTimeMs()
Gets the connection time (ms).
|
double |
getCpuAppUsage()
Gets the CPU app usage (%).
|
double |
getCpuTotalUsage()
Gets the CPU total usage (%).
|
int |
getDuration()
Gets the duration (s).
|
int |
getFirstAudioPacketDuration()
Gets the first audio packet duration (ms).
|
int |
getFirstAudioPacketDurationAfterUnmute()
Gets the first audio packet duration after unmute (ms).
|
int |
getFirstVideoKeyFrameDecodedDurationAfterUnmute()
Gets the first video key frame decoded duration after unmute (ms).
|
int |
getFirstVideoKeyFramePacketDuration()
Gets the first video key frame packet duration (ms).
|
int |
getFirstVideoKeyFramePacketDurationAfterUnmute()
Gets the first video key frame packet duration after unmute (ms).
|
int |
getFirstVideoKeyFrameRenderedDurationAfterUnmute()
Gets the first video key frame rendered duration after unmute (ms).
|
int |
getFirstVideoPacketDuration()
Gets the first video packet duration (ms).
|
int |
getFirstVideoPacketDurationAfterUnmute()
Gets the first video packet duration after unmute (ms).
|
int |
getGatewayRtt()
Gets the gateway RTT (ms).
|
short |
getLastmileDelay()
Gets the last-mile delay (ms).
|
int |
getMemoryAppUsageInKbytes()
Gets the memory app usage (KB).
|
double |
getMemoryAppUsageRatio()
Gets the memory app usage ratio (%).
|
double |
getMemoryTotalUsageRatio()
Gets the memory total usage ratio (%).
|
int |
getPacketsBeforeFirstKeyFramePacket()
Gets the packets before first key frame packet.
|
int |
getRxAudioBytes()
Gets the audio bytes received.
|
short |
getRxAudioKBitRate()
Gets the receive audio bitrate (Kbps).
|
int |
getRxBytes()
Gets the total bytes received.
|
short |
getRxKBitRate()
Gets the receive bitrate (Kbps).
|
int |
getRxPacketLossRate()
Gets the receive packet loss rate (%).
|
int |
getRxVideoBytes()
Gets the video bytes received.
|
short |
getRxVideoKBitRate()
Gets the receive video bitrate (Kbps).
|
int |
getTxAudioBytes()
Gets the audio bytes sent.
|
short |
getTxAudioKBitRate()
Gets the send audio bitrate (Kbps).
|
int |
getTxBytes()
Gets the total bytes sent.
|
short |
getTxKBitRate()
Gets the send bitrate (Kbps).
|
int |
getTxPacketLossRate()
Gets the send packet loss rate (%).
|
int |
getTxVideoBytes()
Gets the video bytes sent.
|
short |
getTxVideoKBitRate()
Gets the send video bitrate (Kbps).
|
int |
getUserCount()
Gets the user count.
|
void |
setConnectionId(int connectionId)
Sets the connection ID.
|
void |
setConnectTimeMs(int connectTimeMs)
Sets the connection time (ms).
|
void |
setCpuAppUsage(double cpuAppUsage)
Sets the CPU app usage (%).
|
void |
setCpuTotalUsage(double cpuTotalUsage)
Sets the CPU total usage (%).
|
void |
setDuration(int duration)
Sets the duration (s).
|
void |
setFirstAudioPacketDuration(int firstAudioPacketDuration)
Sets the first audio packet duration (ms).
|
void |
setFirstAudioPacketDurationAfterUnmute(int firstAudioPacketDurationAfterUnmute)
Sets the first audio packet duration after unmute (ms).
|
void |
setFirstVideoKeyFrameDecodedDurationAfterUnmute(int firstVideoKeyFrameDecodedDurationAfterUnmute)
Sets the first video key frame decoded duration after unmute (ms).
|
void |
setFirstVideoKeyFramePacketDuration(int firstVideoKeyFramePacketDuration)
Sets the first video key frame packet duration (ms).
|
void |
setFirstVideoKeyFramePacketDurationAfterUnmute(int firstVideoKeyFramePacketDurationAfterUnmute)
Sets the first video key frame packet duration after unmute (ms).
|
void |
setFirstVideoKeyFrameRenderedDurationAfterUnmute(int firstVideoKeyFrameRenderedDurationAfterUnmute)
Sets the first video key frame rendered duration after unmute (ms).
|
void |
setFirstVideoPacketDuration(int firstVideoPacketDuration)
Sets the first video packet duration (ms).
|
void |
setFirstVideoPacketDurationAfterUnmute(int firstVideoPacketDurationAfterUnmute)
Sets the first video packet duration after unmute (ms).
|
void |
setGatewayRtt(int gatewayRtt)
Sets the gateway RTT (ms).
|
void |
setLastmileDelay(short lastmileDelay)
Sets the last-mile delay (ms).
|
void |
setMemoryAppUsageInKbytes(int memoryAppUsageInKbytes)
Sets the memory app usage (KB).
|
void |
setMemoryAppUsageRatio(double memoryAppUsageRatio)
Sets the memory app usage ratio (%).
|
void |
setMemoryTotalUsageRatio(double memoryTotalUsageRatio)
Sets the memory total usage ratio (%).
|
void |
setPacketsBeforeFirstKeyFramePacket(int packetsBeforeFirstKeyFramePacket)
Sets the packets before first key frame packet.
|
void |
setRxAudioBytes(int rxAudioBytes)
Sets the audio bytes received.
|
void |
setRxAudioKBitRate(short rxAudioKBitRate)
Sets the receive audio bitrate (Kbps).
|
void |
setRxBytes(int rxBytes)
Sets the total bytes received.
|
void |
setRxKBitRate(short rxKBitRate)
Sets the receive bitrate (Kbps).
|
void |
setRxPacketLossRate(int rxPacketLossRate)
Sets the receive packet loss rate (%).
|
void |
setRxVideoBytes(int rxVideoBytes)
Sets the video bytes received.
|
void |
setRxVideoKBitRate(short rxVideoKBitRate)
Sets the receive video bitrate (Kbps).
|
void |
setTxAudioBytes(int txAudioBytes)
Sets the audio bytes sent.
|
void |
setTxAudioKBitRate(short txAudioKBitRate)
Sets the send audio bitrate (Kbps).
|
void |
setTxBytes(int txBytes)
Sets the total bytes sent.
|
void |
setTxKBitRate(short txKBitRate)
Sets the send bitrate (Kbps).
|
void |
setTxPacketLossRate(int txPacketLossRate)
Sets the send packet loss rate (%).
|
void |
setTxVideoBytes(int txVideoBytes)
Sets the video bytes sent.
|
void |
setTxVideoKBitRate(short txVideoKBitRate)
Sets the send video bitrate (Kbps).
|
void |
setUserCount(int userCount)
Sets the user count.
|
private int connectionId
private int duration
private int txBytes
private int rxBytes
private int txAudioBytes
private int txVideoBytes
private int rxAudioBytes
private int rxVideoBytes
private short txKBitRate
private short rxKBitRate
private short rxAudioKBitRate
private short txAudioKBitRate
private short rxVideoKBitRate
private short txVideoKBitRate
private short lastmileDelay
private int userCount
private double cpuAppUsage
private double cpuTotalUsage
private int gatewayRtt
private double memoryAppUsageRatio
private double memoryTotalUsageRatio
private int memoryAppUsageInKbytes
private int connectTimeMs
private int firstAudioPacketDuration
private int firstVideoPacketDuration
private int firstVideoKeyFramePacketDuration
private int packetsBeforeFirstKeyFramePacket
private int firstAudioPacketDurationAfterUnmute
private int firstVideoPacketDurationAfterUnmute
private int firstVideoKeyFramePacketDurationAfterUnmute
private int firstVideoKeyFrameDecodedDurationAfterUnmute
private int firstVideoKeyFrameRenderedDurationAfterUnmute
private int txPacketLossRate
private int rxPacketLossRate
public RtcStats()
public RtcStats(int connectionId,
int duration,
int txBytes,
int rxBytes,
int txAudioBytes,
int txVideoBytes,
int rxAudioBytes,
int rxVideoBytes,
short txKBitRate,
short rxKBitRate,
short rxAudioKBitRate,
short txAudioKBitRate,
short rxVideoKBitRate,
short txVideoKBitRate,
short lastmileDelay,
int userCount,
double cpuAppUsage,
double cpuTotalUsage,
int gatewayRtt,
double memoryAppUsageRatio,
double memoryTotalUsageRatio,
int memoryAppUsageInKbytes,
int connectTimeMs,
int firstAudioPacketDuration,
int firstVideoPacketDuration,
int firstVideoKeyFramePacketDuration,
int packetsBeforeFirstKeyFramePacket,
int firstAudioPacketDurationAfterUnmute,
int firstVideoPacketDurationAfterUnmute,
int firstVideoKeyFramePacketDurationAfterUnmute,
int firstVideoKeyFrameDecodedDurationAfterUnmute,
int firstVideoKeyFrameRenderedDurationAfterUnmute,
int txPacketLossRate,
int rxPacketLossRate)
connectionId - Connection IDduration - Duration (s)txBytes - Total bytes sentrxBytes - Total bytes receivedtxAudioBytes - Audio bytes senttxVideoBytes - Video bytes sentrxAudioBytes - Audio bytes receivedrxVideoBytes - Video bytes receivedtxKBitRate - Send bitrate (Kbps)rxKBitRate - Receive bitrate (Kbps)rxAudioKBitRate - Receive audio bitrate (Kbps)txAudioKBitRate - Send audio bitrate (Kbps)rxVideoKBitRate - Receive video bitrate (Kbps)txVideoKBitRate - Send video bitrate (Kbps)lastmileDelay - Last-mile delay (ms)userCount - User countcpuAppUsage - CPU app usage (%)cpuTotalUsage - CPU total usage (%)gatewayRtt - Gateway RTT (ms)memoryAppUsageRatio - Memory app usage ratio (%)memoryTotalUsageRatio - Memory total usage ratio (%)memoryAppUsageInKbytes - Memory app usage (KB)connectTimeMs - Connection time (ms)firstAudioPacketDuration - First audio packet duration (ms)firstVideoPacketDuration - First video packet duration (ms)firstVideoKeyFramePacketDuration - First video key frame packet duration (ms)packetsBeforeFirstKeyFramePacket - Packets before first key frame packetfirstAudioPacketDurationAfterUnmute - First audio packet duration after unmute (ms)firstVideoPacketDurationAfterUnmute - First video packet duration after unmute (ms)firstVideoKeyFramePacketDurationAfterUnmute - First video key frame packet duration after unmute (ms)firstVideoKeyFrameDecodedDurationAfterUnmute - First video key frame decoded duration after unmute (ms)firstVideoKeyFrameRenderedDurationAfterUnmute - First video key frame rendered duration after unmute (ms)txPacketLossRate - Send packet loss rate (%)rxPacketLossRate - Receive packet loss rate (%)public int getConnectionId()
public void setConnectionId(int connectionId)
connectionId - Connection IDpublic int getDuration()
public void setDuration(int duration)
duration - Duration (s)public int getTxBytes()
public void setTxBytes(int txBytes)
txBytes - Total bytes sentpublic int getRxBytes()
public void setRxBytes(int rxBytes)
rxBytes - Total bytes receivedpublic int getTxAudioBytes()
public void setTxAudioBytes(int txAudioBytes)
txAudioBytes - Audio bytes sentpublic int getTxVideoBytes()
public void setTxVideoBytes(int txVideoBytes)
txVideoBytes - Video bytes sentpublic int getRxAudioBytes()
public void setRxAudioBytes(int rxAudioBytes)
rxAudioBytes - Audio bytes receivedpublic int getRxVideoBytes()
public void setRxVideoBytes(int rxVideoBytes)
rxVideoBytes - Video bytes receivedpublic short getTxKBitRate()
public void setTxKBitRate(short txKBitRate)
txKBitRate - Send bitrate (Kbps)public short getRxKBitRate()
public void setRxKBitRate(short rxKBitRate)
rxKBitRate - Receive bitrate (Kbps)public short getRxAudioKBitRate()
public void setRxAudioKBitRate(short rxAudioKBitRate)
rxAudioKBitRate - Receive audio bitrate (Kbps)public short getTxAudioKBitRate()
public void setTxAudioKBitRate(short txAudioKBitRate)
txAudioKBitRate - Send audio bitrate (Kbps)public short getRxVideoKBitRate()
public void setRxVideoKBitRate(short rxVideoKBitRate)
rxVideoKBitRate - Receive video bitrate (Kbps)public short getTxVideoKBitRate()
public void setTxVideoKBitRate(short txVideoKBitRate)
txVideoKBitRate - Send video bitrate (Kbps)public short getLastmileDelay()
public void setLastmileDelay(short lastmileDelay)
lastmileDelay - Last-mile delay (ms)public int getUserCount()
public void setUserCount(int userCount)
userCount - User countpublic double getCpuAppUsage()
public void setCpuAppUsage(double cpuAppUsage)
cpuAppUsage - CPU app usage (%)public double getCpuTotalUsage()
public void setCpuTotalUsage(double cpuTotalUsage)
cpuTotalUsage - CPU total usage (%)public int getGatewayRtt()
public void setGatewayRtt(int gatewayRtt)
gatewayRtt - Gateway RTT (ms)public double getMemoryAppUsageRatio()
public void setMemoryAppUsageRatio(double memoryAppUsageRatio)
memoryAppUsageRatio - Memory app usage ratio (%)public double getMemoryTotalUsageRatio()
public void setMemoryTotalUsageRatio(double memoryTotalUsageRatio)
memoryTotalUsageRatio - Memory total usage ratio (%)public int getMemoryAppUsageInKbytes()
public void setMemoryAppUsageInKbytes(int memoryAppUsageInKbytes)
memoryAppUsageInKbytes - Memory app usage (KB)public int getConnectTimeMs()
public void setConnectTimeMs(int connectTimeMs)
connectTimeMs - Connection time (ms)public int getFirstAudioPacketDuration()
public void setFirstAudioPacketDuration(int firstAudioPacketDuration)
firstAudioPacketDuration - First audio packet duration (ms)public int getFirstVideoPacketDuration()
public void setFirstVideoPacketDuration(int firstVideoPacketDuration)
firstVideoPacketDuration - First video packet duration (ms)public int getFirstVideoKeyFramePacketDuration()
public void setFirstVideoKeyFramePacketDuration(int firstVideoKeyFramePacketDuration)
firstVideoKeyFramePacketDuration - First video key frame packet duration (ms)public int getPacketsBeforeFirstKeyFramePacket()
public void setPacketsBeforeFirstKeyFramePacket(int packetsBeforeFirstKeyFramePacket)
packetsBeforeFirstKeyFramePacket - Packets before first key frame packetpublic int getFirstAudioPacketDurationAfterUnmute()
public void setFirstAudioPacketDurationAfterUnmute(int firstAudioPacketDurationAfterUnmute)
firstAudioPacketDurationAfterUnmute - First audio packet duration after unmute (ms)public int getFirstVideoPacketDurationAfterUnmute()
public void setFirstVideoPacketDurationAfterUnmute(int firstVideoPacketDurationAfterUnmute)
firstVideoPacketDurationAfterUnmute - First video packet duration after unmute (ms)public int getFirstVideoKeyFramePacketDurationAfterUnmute()
public void setFirstVideoKeyFramePacketDurationAfterUnmute(int firstVideoKeyFramePacketDurationAfterUnmute)
firstVideoKeyFramePacketDurationAfterUnmute - First video key frame packet duration after unmute (ms)public int getFirstVideoKeyFrameDecodedDurationAfterUnmute()
public void setFirstVideoKeyFrameDecodedDurationAfterUnmute(int firstVideoKeyFrameDecodedDurationAfterUnmute)
firstVideoKeyFrameDecodedDurationAfterUnmute - First video key frame decoded duration after unmute (ms)public int getFirstVideoKeyFrameRenderedDurationAfterUnmute()
public void setFirstVideoKeyFrameRenderedDurationAfterUnmute(int firstVideoKeyFrameRenderedDurationAfterUnmute)
firstVideoKeyFrameRenderedDurationAfterUnmute - First video key frame rendered duration after unmute (ms)public int getTxPacketLossRate()
public void setTxPacketLossRate(int txPacketLossRate)
txPacketLossRate - Send packet loss rate (%)public int getRxPacketLossRate()
public void setRxPacketLossRate(int rxPacketLossRate)
rxPacketLossRate - Receive packet loss rate (%)