onPlayerRenderMultiViewFirstFrame property

(void Function(String streamID, String viewContext)?) onPlayerRenderMultiViewFirstFrame
getter/setter pair

When multiple playing canvas are set, the callback will be triggered after one view renders the first frame of the video.

Available since: 3.21.0 Description: Call startPlayingStream to play stream and call setPlayingCanvas to add multiple views, this callback will be called when SDK rendered the first frame of video data. Use cases: Developer can use this callback to update the UI for playing stream. Trigger: The user playing the mixed stream, adds multiple views through setPlayingCanvas, and sets the correct viewContext parameters, which will trigger this callback after the corresponding view has rendered the first frame of video data. Related callbacks: After a successful call to startPlayingStream, the callback function onPlayerRecvAudioFirstFrame determines whether the SDK has received the audio data, and the callback onPlayerRecvVideoFirstFrame determines whether the SDK has received the video data. Note: This function is only available in ZegoExpressVideo SDK!

  • streamID Stream ID.
  • viewContext Context of view.

Implementation

static void Function(String streamID, String viewContext)?
    onPlayerRenderMultiViewFirstFrame;