onFirstLocalAudioFramePublished property

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

Callback when the first local audio frame is published.

The SDK triggers this callback under the following circumstances: After successfully joining a channel by calling joinChannel with local audio enabled. After calling muteLocalAudioStream(true) followed by muteLocalAudioStream(false). After calling disableAudio followed by enableAudio.

  • connection Connection information. See RtcConnection.
  • elapsed The time elapsed (in milliseconds) from calling the joinChannel method to triggering this callback.

Implementation

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