remoteAudioStateChanged property

RemoteAudioStateCallback? remoteAudioStateChanged
getter/setter pair

Occurs when the remote audio state changes. When the audio state of a remote user (in the voice/video call channel) or host (in the live streaming channel) changes, the SDK triggers this callback to report the current state of the remote audio stream. This callback does not work properly when the number of users (in the voice/video call channel) or hosts (in the live streaming channel) in the channel exceeds 17.

Param reason The reason of the remote audio state change, see AudioRemoteStateReason .

Param state The state of the remote audio, see AudioRemoteState .

Param uid The ID of the remote user whose audio state changes.

Param elapsed Time elapsed (ms) from the local user calling the joinChannel method until the SDK triggers this callback.

Implementation

RemoteAudioStateCallback? remoteAudioStateChanged;