onPlayerRenderCameraVideoFirstFrame method

void onPlayerRenderCameraVideoFirstFrame(
  1. String streamID
)

Calls back when the stream playing end renders the first frame of the video from the remote camera.

Available since: 3.0.0 Description: After calling the startPlayingStream function to pull the stream successfully, the SDK will receive this callback after pulling the stream and rendering the first frame of remote camera video data. Use cases: Developer can use this callback to count time consuming that take the first frame time or update the UI for playing stream. Trigger: After the remote enableCamera enables the camera, or after mutePublishStreamVideo is true and starts to send video data, the SDK will receive this callback after playing the stream and rendering the first frame of the remote camera video data. Caution: It is only applicable when the remote end uses the camera to push the stream. Only applicable to RTC publishing and playing streaming scenarios. Related callbacks: After a successful call to startPlayingStream, the callback onPlayerRecvVideoFirstFrame determines whether the SDK has received the video data. Note: This function is only available in ZegoExpressVideo SDK!

  • streamID Stream ID.

Implementation

void onPlayerRenderCameraVideoFirstFrame(
  String streamID,
) {}