VideoRenderingTracingInfo

Metrics during the video frame rendering process.

public class VideoRenderingTracingInfo
    {

        public int elapsedTime;
        public int start2JoinChannel;
        public int join2JoinSuccess;
        public int joinSuccess2RemoteJoined;
        public int remoteJoined2SetView;
        public int remoteJoined2UnmuteVideo;
        public int remoteJoined2PacketReceived;
    };

Properties

elapsedTime
The time interval (ms) from calling StartMediaRenderingTracing to triggering the OnVideoRenderingTracingResult callback. It is recommended to call StartMediaRenderingTracing before joining the channel.
start2JoinChannel
The time interval (ms) from calling StartMediaRenderingTracing to calling JoinChannel [1/2] or JoinChannel [2/2]. A negative value indicates that StartMediaRenderingTracing was called after JoinChannel [2/2].
join2JoinSuccess
The time interval (ms) from calling JoinChannel [1/2] or JoinChannel [2/2] to successfully joining the channel.
joinSuccess2RemoteJoined
Note:
  • If the local user calls StartMediaRenderingTracing after the remote user has already joined the channel, this value is 0 and has no reference value.
  • To improve the rendering speed of the remote user, it is recommended that the local user join the channel after the remote user has joined, to reduce this value.
  • If the local user calls StartMediaRenderingTracing before successfully joining the channel, this value is the time interval (ms) from the local user successfully joining the channel to the remote user joining the channel.
  • If the local user calls StartMediaRenderingTracing after successfully joining the channel, this value is the time interval (ms) from calling StartMediaRenderingTracing to the remote user joining the channel.
remoteJoined2SetView
Note:
  • If the local user calls StartMediaRenderingTracing after setting the remote view, this value is 0 and has no reference value.
  • To improve the rendering speed of the remote user, it is recommended to set the remote view before the remote user joins the channel, or immediately after the remote user joins the channel, to reduce this value.
  • If the local user calls StartMediaRenderingTracing before the remote user joins the channel, this value is the time interval (ms) from the remote user joining the channel to the local user setting the remote view.
  • If the local user calls StartMediaRenderingTracing after the remote user joins the channel, this value is the time interval (ms) from calling StartMediaRenderingTracing to setting the remote view.
remoteJoined2UnmuteVideo
Note:
  • If StartMediaRenderingTracing is called after subscribing to the remote video stream, this value is 0 and has no reference value.
  • To improve the rendering speed of the remote user, it is recommended that the local user subscribe to the remote video stream immediately after the remote user joins the channel, to reduce this value.
  • If the local user calls StartMediaRenderingTracing before the remote user joins the channel, this value is the time interval (ms) from the remote user joining the channel to subscribing to the remote video stream.
  • If the local user calls StartMediaRenderingTracing after the remote user joins the channel, this value is the time interval (ms) from calling StartMediaRenderingTracing to subscribing to the remote video stream.
remoteJoined2PacketReceived
Note:
  • If StartMediaRenderingTracing is called after receiving the remote video stream, this value is 0 and has no reference value.
  • To improve the rendering speed of the remote user, it is recommended that the remote user publish the video stream immediately after joining the channel, and the local user subscribe to the remote video stream immediately, to reduce this value.
  • If the local user calls StartMediaRenderingTracing before the remote user joins the channel, this value is the time interval (ms) from the remote user joining the channel to the local user receiving the first remote data packet.
  • If the local user calls StartMediaRenderingTracing after the remote user joins the channel, this value is the time interval (ms) from calling StartMediaRenderingTracing to receiving the first remote data packet.