onPublisherRenderVideoFirstFrame property

(void Function(ZegoPublishChannel channel)?) onPublisherRenderVideoFirstFrame
getter/setter pair

The callback triggered when the first video frame is rendered.

Available since: 2.4.0 Description: this callback will be called after SDK rendered the first frame of video data captured. This interface is for preview rendering. The first frame callback is only available for external collection and internal preview. If it is not for SDK rendering, there is no such callback. Related callbacks: After the startPublishingStream function is called successfully, determine if the SDK actually collected audio data by the callback function onPublisherCapturedAudioFirstFrame, determine if the SDK actually collected video data by the callback function onPublisherCapturedVideoFirstFrame. Note: This function is only available in ZegoExpressVideo SDK!

  • channel Publishing stream channel.If you only publish one audio and video stream, you can ignore this parameter.

Implementation

static void Function(ZegoPublishChannel channel)?
    onPublisherRenderVideoFirstFrame;