onFirstRemoteAudioDecoded property

void Function(RtcConnection connection, int uid, int elapsed)? onFirstRemoteAudioDecoded
final

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.The remote user stops sending the audio stream and re-sends it after 15 seconds, and the possible reasons include:The remote user leaves the channel.The remote user is offline.The remote user calls muteLocalAudioStream to stop sending the video stream.The remote user calls disableAudio to disable video.

  • connection The connection information. See RtcConnection .
  • uid The user ID of the remote user.
  • elapsed The time elapsed (ms) from the local user calling the joinChannel 2/2 method until the SDK triggers this callback.

Implementation

final void Function(RtcConnection connection, int uid, int elapsed)?
    onFirstRemoteAudioDecoded;