onVideoRenderingTracingResult
Video frame rendering event callback.
final void Function( RtcConnection connection, int uid, MediaTraceEvent currentEvent, VideoRenderingTracingInfo tracingInfo)? onVideoRenderingTracingResult;
After calling the startMediaRenderingTracing method or joining the channel, the SDK triggers this callback to report the events of video frame rendering and the indicators during the rendering process. Developers can optimize the indicators to improve the efficiency of the first video frame rendering.
Parameters
- connection
- The connection information. See RtcConnection.
- uid
- The user ID.
- currentEvent
- The current video frame rendering event. See MediaTraceEvent.
- tracingInfo
- The indicators during the video frame rendering process. Developers need to reduce the value of indicators as much as possible in order to improve the efficiency of the first video frame rendering. See VideoRenderingTracingInfo.