LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TRTCStatisic

Packages

package  com.tencent.trtc
 

Data Structures

class  TRTCStatistics.TRTCLocalStatistics
 
class  TRTCStatistics.TRTCRemoteStatistics
 
class  TRTCStatistics
 

Detailed Description

Tencent Cloud TRTC : audio, video and network related statistical indicators.

Module: TRTC audio/video metrics (read-only) Function: the TRTC SDK reports to you the current real-time audio/video metrics (frame rate, bitrate, lag, etc.) once every two seconds


Data Structure Documentation

◆ com::tencent::trtc::TRTCStatistics::TRTCLocalStatistics

class com::tencent::trtc::TRTCStatistics::TRTCLocalStatistics
Data Fields
int audioCaptureState

Field description:** local video width in px public int width;

/**Field description:** local video height in px public int height;

/**Field description:** local video frame rate in fps, i.e., how many video frames there are per second public int frameRate;

/**Field description:** remote video bitrate in Kbps, i.e., how much video data is generated per second public int videoBitrate;

/**Field description:** remote audio sample rate (Hz) public int audioSampleRate;

/**Field description:** local audio bitrate in Kbps, i.e., how much audio data is generated per second public int audioBitrate;

/**Field description:** video stream type (HD big image | smooth small image | substream image) public int streamType;

/****Field description:**Audio equipment collection status( 0:Normal;1:Long silence detected;2:Broken sound detected;3:Abnormal intermittent sound detected;)

◆ com::tencent::trtc::TRTCStatistics::TRTCRemoteStatistics

class com::tencent::trtc::TRTCStatistics::TRTCRemoteStatistics
Data Fields
int audioBlockRate

Field description:** cumulative audio playback lag duration (ms) public int audioTotalBlockTime;

/****Field description:** audio playback lag rate (%) Audio playback lag rate (audioBlockRate) = cumulative audio playback lag duration (audioTotalBlockTime)/total audio playback duration

int audioPacketLoss

Field description:** user ID public String userId;

/****Field description:** total packet loss rate (%) of the audio stream audioPacketLoss represents the packet loss rate eventually calculated on the audience side after the audio/video stream goes through the complete transfer linkage of "anchor -> cloud -> audience". The smaller the audioPacketLoss, the better. The packet loss rate of 0 indicates that all data of the audio stream has entirely reached the audience. If downLoss is 0 but audioPacketLoss isn't, there is no packet loss on the linkage of "cloud -> audience" for the audiostream, but there are unrecoverable packet losses on the linkage of "anchor -> cloud".

int finalLoss
int jitterBufferDelay

Field description:** remote video width in px public int width;

/**Field description:** remote video height in px public int height;

/**Field description:** remote video frame rate (fps) public int frameRate;

/**Field description:** remote video bitrate (Kbps) public int videoBitrate;

/**Field description:** local audio sample rate (Hz) public int audioSampleRate;

/**Field description:** local audio bitrate (Kbps) public int audioBitrate;

/****Field description:** playback delay (ms) In order to avoid audio/video lags caused by network jitters and network packet disorders, TRTC maintains a playback buffer on the playback side to organize the received network data packets. The size of the buffer is adaptively adjusted according to the current network quality and converted to the length of time in milliseconds, i.e., jitterBufferDelay.

int point2PointDelay
int videoBlockRate

Field description:** cumulative video playback lag duration (ms) public int videoTotalBlockTime;

/****Field description:** video playback lag rate (%) Video playback lag rate (videoBlockRate) = cumulative video playback lag duration (videoTotalBlockTime)/total video playback duration

int videoPacketLoss

◆ com::tencent::trtc::TRTCStatistics

class com::tencent::trtc::TRTCStatistics
Data Fields
int appCpu
int downLoss
int gatewayRtt
ArrayList< TRTCLocalStatistics > localArray

Field description:** total number of sent bytes (including signaling data and audio/video data) public long sendBytes;

/**Field description:** total number of received bytes (including signaling data and audio/video data) public long receiveBytes;

/****Field description:** local audio/video statistics As there may be three local audio/video streams (i.e., HD big image, smooth small image, and substream image), the local audio/video statistics are an array.

ArrayList< TRTCRemoteStatistics > remoteArray
int rtt
int systemCpu
int upLoss