Remote audio/video metrics


new TRTCRemoteStatistics(userId, finalLoss, width, height, frameRate, videoBitrate, audioSampleRate, audioBitrate, jitterBufferDelay, audioTotalBlockTime, audioBlockRate, videoTotalBlockTime, videoBlockRate, streamType)

Name Type Description
userId String required

user ID

finalLoss Number required

total packet loss rate (%) of the audio/video stream. The smaller the finalLoss , the better. The packet loss rate of 0 indicates that all data of the video stream has entirely reached the audience. If downLoss is 0 but finalLoss isn't, there is no packet loss on the linkage of "cloud -> audience" for the video stream, but there are unrecoverable packet losses on the linkage of "anchor -> cloud".

width Number required

remote video width in px

height Number required

remote video height in px

frameRate Number required

remote video frame rate (fps)

videoBitrate Number required

remote video bitrate (Kbps)

audioSampleRate Number required

remote audio sample rate (Hz)

audioBitrate Number required

remote audio bitrate (Kbps)

jitterBufferDelay Number required

playback delay (ms)

audioTotalBlockTime Number required

cumulative audio playback lag duration (ms)

audioBlockRate Number required

audio playback lag rate (%)

videoTotalBlockTime Number required

cumulative video playback lag duration (ms)

videoBlockRate Number required

video playback lag rate (%)

streamType TRTCVideoStreamType required

video stream type (HD big image | smooth small image | substream image)