onPlayerRecvAudioFirstFrame property

(void Function(String streamID)?) onPlayerRecvAudioFirstFrame
read / write

The callback triggered when the first audio frame is received.

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 audio 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 audio data from the network. Related callbacks: After a successful call to startPlayingStream, the callback function onPlayerRecvVideoFirstFrame determines whether the SDK has received the video data, and the callback onPlayerRenderVideoFirstFrame determines whether the SDK has rendered the first frame of the received video data.

  • streamID Stream ID.

Implementation

static void Function(String streamID)? onPlayerRecvAudioFirstFrame;