onPublisherCapturedVideoFirstFrame method

void onPublisherCapturedVideoFirstFrame(
  1. ZegoPublishChannel channel
)

The callback triggered when the first video frame is captured.

Available since: 1.1.0 Description: The SDK will receive this callback when the first frame of video data is captured. If this callback is not received, the video capture device is occupied or abnormal. Trigger: When the SDK's internal audio/video module's engine starts, the SDK will collect video data from the local device and will receive this callback. Related callbacks: 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 audio and video stream, you can ignore this parameter.

Implementation

void onPublisherCapturedVideoFirstFrame(ZegoPublishChannel channel) {}