onFirstRemoteAudioDecoded property
Occurs when the SDK decodes the first remote audio frame for playback.
Deprecated: Use onRemoteAudioStateChanged instead. The SDK triggers this callback under one of the following circumstances: The remote user joins the channel and sends the audio stream for the first time. The remote user's audio is offline and then goes online to re-send audio. It means the local user cannot receive audio in 15 seconds. Reasons for such an interruption include: The remote user leaves channel. The remote user drops offline. The remote user calls muteLocalAudioStream to stop sending the audio stream. The remote user calls disableAudio to disable audio.
connection
The connection information. See RtcConnection.uid
The user ID of the remote user.elapsed
The time elapsed (ms) from the local user calling joinChannel until the SDK triggers this callback.
Implementation
final void Function(RtcConnection connection, int uid, int elapsed)?
onFirstRemoteAudioDecoded;