onFirstRemoteAudioDecoded property

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

Callback when the first remote audio frame is decoded.

Deprecated Deprecated: Please use onRemoteAudioStateChanged instead. The SDK triggers this callback under the following circumstances: When a remote user sends audio after joining the channel for the first time. When a remote user resumes sending audio after going offline. Offline means no audio packets are received within 15 seconds, which may be caused by: The remote user leaving the channel The remote user going offline The remote user calling muteLocalAudioStream to stop sending audio streams The remote user calling disableAudio to disable audio

  • connection Connection information. See RtcConnection.
  • uid Remote user ID.
  • elapsed The delay (in milliseconds) from the local user calling joinChannel to the triggering of this callback.

Implementation

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