6 package com.netease.nimlib.sdk.avchat.model;
9 import com.
netease.nrtc.sdk.common.statistics.SessionStats;
11 import java.util.ArrayList;
109 private int sessionState;
119 return sessionState == SessionStats.State.STOPPED;
124 stats.sessionState = sessionStats.sessionState;
133 stats.
rxBytes = sessionStats.rxBytes;
134 stats.
txBytes = sessionStats.txBytes;
142 for (SessionStats.SimulcastVideo video : sessionStats.simulcastVideos) {
151 public static class SimulcastVideo {
159 public int videoType;
165 public int txVideoPacketsPerSecond;
171 public long txVideoEncodedBitrate;
177 public long txVideoSentBitrate;
180 public SimulcastVideo(SessionStats.SimulcastVideo video) {
181 this.videoType = video.videoType;
182 this.txVideoPacketsPerSecond = video.txVideoPacketsPerSecond;
183 this.txVideoEncodedBitrate = video.txVideoEncodedBitrate;
184 this.txVideoSentBitrate = video.txVideoSentBitrate;
189 public boolean equals(Object right) {
194 if (right == null || getClass() != right.getClass()) {
197 SimulcastVideo video = (SimulcastVideo) right;
198 return videoType == video.videoType;
202 public int hashCode() {
boolean isSessionStopped()
int audioGapPacket
语音卡顿数据包个数。周期性统计,结束时汇报整个会话的卡顿数据包个数。
long sysMemoryAvailable
当前设备可用内存(MB)
int txAudioEncodedBitrate
语音编码比特率,kbps
int rxVideoPacketsPerSecond
每秒接收的视频包个数,瞬时值
int rxAudioPacketsPerSecond
每秒接收的音频包个数,瞬时值
long rxBytes
会话接收字节数(bytes)
long txAudioSentBitrate
语音数据实际发送比特率,kbps
int txAudioPacketsPerSecond
每秒发送的音频包个数,瞬时值
int audioTotalPacket
语音数据包总数。周期性统计,数据时汇报整个会话的数据包总数。
int audioFreeze
语音卡播比。周期性统计,结束时汇报整个会话卡播比
int sysCpuRate
当前系统的cpu使用率()
long appMemoryUse
当前应用程序占用的内存(MB)
ArrayList< SimulcastVideo > simulcastVideos
多流相关的视频流统计数据(自己发布了并且有人订阅的流)
long appCpuFreq
实时获取的cpu当前频率,瞬时值(KHz)
static AVChatSessionStats fork(SessionStats sessionStats)
long txBytes
会话发送字节数(bytes)
int appCpuRate
当前sdk所在进程的cpu使用率()