RemoteVideoStats

Statistics of the remote video stream.

struct RemoteVideoStats {
  uid_t uid;
  int delay;
  int e2eDelay;
  int width;
  int height;
  int receivedBitrate;
  int decoderOutputFrameRate;
  int rendererOutputFrameRate;
  int frameLossRate;
  int packetLossRate;
  VIDEO_STREAM_TYPE rxStreamType;
  int totalFrozenTime;
  int frozenRate;
  int avSyncTimeMs;
  int totalActiveTime;
  int publishDuration;
};

Attributes

uid
The user ID of the remote user sending the video stream.
delay
Deprecated:
In scenarios where audio and video are synchronized, you can get the video delay data from networkTransportDelay and jitterBufferDelay in RemoteAudioStats.

The video delay (ms).

e2eDelay
End-to-end video latency (ms). That is, the time elapsed from the video capturing on the remote user's end to the receiving and rendering of the video on the local user's end.
width
The width (pixels) of the video.
height
The height (pixels) of the video.
receivedBitrate
The bitrate (Kbps) of the remote video received since the last count.
decoderOutputFrameRate
The frame rate (fps) of decoding the remote video.
rendererOutputFrameRate
The frame rate (fps) of rendering the remote video.
frameLossRate
The packet loss rate (%) of the remote video.
packetLossRate
The packet loss rate (%) of the remote video after using the anti-packet-loss technology.
rxStreamType
The type of the video stream. See VIDEO_STREAM_TYPE.
totalFrozenTime
The total freeze time (ms) of the remote video stream after the remote user joins the channel. In a video session where the frame rate is set to no less than 5 fps, video freeze occurs when the time interval between two adjacent renderable video frames is more than 500 ms.
frozenRate
The total video freeze time as a percentage (%) of the total time the video is available. The video is considered available as long as that the remote user neither stops sending the video stream nor disables the video module after joining the channel.
totalActiveTime

The total active time (ms) of the video.

As long as the remote user or host neither stops sending the video stream nor disables the video module after joining the channel, the video is available.

publishDuration

The total duration (ms) of the remote video stream.

avSyncTimeMs
The amount of time (ms) that the audio is ahead of the video.
Attention: If this value is negative, the audio is lagging behind the video.