onVideoRenderingTracingResult property
void Function(RtcConnection connection, int uid, MediaTraceEvent currentEvent, VideoRenderingTracingInfo tracingInfo)?
onVideoRenderingTracingResult
final
Video frame rendering event callback.
After calling the startMediaRenderingTracing method or joining a 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.
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.
Implementation
final void Function(
RtcConnection connection,
int uid,
MediaTraceEvent currentEvent,
VideoRenderingTracingInfo tracingInfo)? onVideoRenderingTracingResult;