onPublisherSendVideoFirstFrame property

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

The callback triggered when the first video frame is sent.

Available since: 3.5.0 Description: After the startPublishingStream function is called successfully, this callback will be called when SDK received the first frame of video data. Developers can use this callback to determine whether SDK has actually collected video data. If the callback is not received, the video capture device is occupied or abnormal. Trigger: In the case of no startPublishingStream video stream, the first startPublishingStream video stream, it will receive this 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 has rendered the first frame of video data collected by calling back onPublisherRenderVideoFirstFrame. Note: This function is only available in ZegoExpressVideo SDK!

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

Implementation

static void Function(ZegoPublishChannel channel)?
    onPublisherSendVideoFirstFrame;