onPlayerRenderVideoFirstFrame property
The callback triggered when the first video frame is rendered.
Available since: 1.1.0
Description: After the startPlayingStream
function is called successfully, this callback will be called when SDK rendered the first frame of 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: This callback is triggered when SDK rendered the first frame of video data from the network.
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.
Implementation
static void Function(String streamID)? onPlayerRenderVideoFirstFrame;