onRenderVideoFrame property
Gets the video data sent from the remote user.
After successfully registering the video data observer, the SDK triggers this callback each time a video frame is captured. You can get the video data sent from the remote user before rendering and process it as needed for your scenario. If the video data you get is of RGBA type, the SDK does not support processing the Alpha channel. Due to framework limitations, this callback does not support sending the processed video data back to the SDK. It is recommended that you ensure the modified parameters in videoFrame match the actual video frame in the buffer; otherwise, unexpected rotation, distortion, etc., may occur in the local preview or remote video.
remoteUidRemote user ID who sent the video frame.videoFrameVideo frame data. See VideoFrame. The default format of the video frame data obtained through this callback is as follows: Android: I420 iOS: I420 macOS: I420 Windows: YUV420channelIdChannel ID.
Implementation
final void Function(String channelId, int remoteUid, VideoFrame videoFrame)?
onRenderVideoFrame;