onFirstLocalAudioFramePublished property

(void Function(RtcConnection connection, int elapsed)?) onFirstLocalAudioFramePublished
final

Occurs when the first audio frame is published. The SDK triggers this callback under one of the following circumstances:The local client enables the audio module and calls joinChannel 2/2 successfully.The local client calls muteLocalAudioStream (true) and muteLocalAudioStream(false) in sequence.The local client calls disableAudio and enableAudio in sequence.

  • connection The connection information. See RtcConnection .
  • elapsed Time elapsed (ms) from the local user calling joinChannel 2/2 until the SDK triggers this callback.

Implementation

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