onPlayerRecvVideoFirstFrame method
The callback triggered when the first video frame is received. Except for Linux systems, this callback is thrown from the ui thread by default.
Available since: 1.1.0
Description: After the startPlayingStream
function is called successfully, this callback will be called when SDK received 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 receives 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 onPlayerRenderVideoFirstFrame determines whether the SDK has rendered the first frame of the received video data.
Note: This function is only available in ZegoExpressVideo SDK!
streamID
Stream ID.
Implementation
void onPlayerRecvVideoFirstFrame(
String streamID,
) {}