RemoteVideoStats

Statistics of the remote video stream.

public static class RemoteVideoStats {
    public int uid;
    public int delay;
    public int e2eDelay;
    public int width;
    public int height;
    public int receivedBitrate;
    public int decoderOutputFrameRate;
    public int rendererOutputFrameRate;
    public int frameLossRate;
    public int packetLossRate;
    public int rxStreamType;
    public int totalFrozenTime;
    public int frozenRate;
    public int avSyncTimeMs;
    public long totalActiveTime;
    public long publishDuration;
    public int mosValue;
    public int rxVideoBytes;
  }

Properties

uid
User ID of the remote user sending the video stream.
delay
This field is deprecated. In audio-video sync scenarios, you can get video delay data through networkTransportDelay and jitterBufferDelay in RemoteAudioStats. Video delay (ms).
e2eDelay
End-to-end video delay (ms), which is the time from video capture by the remote user to video rendering by the local user.
width
Video width (pixels).
height
Video height (pixels).
receivedBitrate
Bitrate (Kbps) of the remote video received since the last statistics update.
decoderOutputFrameRate
Frame rate (fps) of the decoded remote video.
rendererOutputFrameRate
Frame rate (fps) of the rendered remote video.
frameLossRate
Frame loss rate (%) of the remote video.
packetLossRate
Packet loss rate (%) of the remote video after applying anti-packet-loss techniques.
rxStreamType
Video stream type:
  • 0: High-quality stream, i.e., high-resolution high-bitrate video stream.
  • 1: Low-quality stream, i.e., low-resolution low-bitrate video stream.
totalFrozenTime
Total duration (ms) of remote video stalling after the remote user joins the channel. Video is considered stalled when the frame rate is not lower than 5 fps and the interval between two renderable frames exceeds 500 ms.
frozenRate
Percentage (%) of total stalling time over the total available video time. As long as the remote user continues sending video after joining the channel and does not disable video, the video is considered available.
avSyncTimeMs
Time (ms) that audio leads video.
Note: If this value is negative, audio lags behind video.
totalActiveTime
Total available duration (ms) of the video. As long as the remote user or host continues sending video after joining the channel and does not disable the video module, the video is considered available.
publishDuration
Total duration (ms) of the remote video stream.
mosValue
Quality of the remote video stream during the reporting interval. This value is calculated using Agora's real-time video MOS (Mean Opinion Score) method, ranging from [0, 500]. Divide by 100 to get the MOS score (0 to 5), where a higher score indicates better quality.
Note: For texture video data, this parameter always returns 0.
rxVideoBytes
Total number of video bytes received (bytes).