firstLocalAudioFramePublished property

ElapsedCallback? firstLocalAudioFramePublished
getter/setter pair

Occurs when the first audio frame is published.

The SDK triggers this callback under one of the following circumstances:

The ElapsedCallback typedef includes the following parameters:

  • int Elapsed: Time elapsed (ms) from the local user calling the RtcEngine.joinChannel until this callback is triggered.

Implementation

///
/// The SDK triggers this callback under one of the following circumstances:
/// - The local client enables the audio module and calls [RtcEngine.joinChannel] successfully.
/// - The local client calls [RtcEngine.muteLocalAudioStream] (`true`) and [RtcEngine.muteLocalAudioStream] (`false`) in sequence.
/// - The local client calls [RtcEngine.disableAudio] (`true`) and [`enableAudio`] in sequence.
///
/// The `ElapsedCallback` typedef includes the following parameters:
/// - [int] `Elapsed`: Time elapsed (ms) from the local user calling the [RtcEngine.joinChannel] until this callback is triggered.
ElapsedCallback? firstLocalAudioFramePublished;