LocalAudioStreamReason

Reasons for local audio state changes.

Enumerator

localAudioStreamReasonOk
0: The local audio is normal.
localAudioStreamReasonFailure
1: No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
localAudioStreamReasonDeviceNoPermission
2: No permission to use the local audio capturing device. Remind your users to grant permission.
Deprecated:
This enumerator is deprecated. Please use recordAudio in the onPermissionError callback instead.
localAudioStreamReasonDeviceBusy
3: (Android and iOS only) The local audio capture device is already in use. Remind your users to check whether another application occupies the microphone. Local audio capture automatically resumes after the microphone is idle for about five seconds. You can also try to rejoin the channel after the microphone is idle.
localAudioStreamReasonRecordFailure
4: The local audio capture fails.
localAudioStreamReasonEncodeFailure
5: The local audio encoding fails.
localAudioStreamReasonNoRecordingDevice
6: (Windows and macOS only) No local audio capture device. Remind your users to check whether the microphone is connected to the device properly in the control panel of the device or if the microphone is working properly.
localAudioStreamReasonNoPlayoutDevice
7: (Windows and macOS only) No local audio capture device. Remind your users to check whether the speaker is connected to the device properly in the control panel of the device or if the speaker is working properly.
localAudioStreamReasonInterrupted
8: (Android and iOS only) The local audio capture is interrupted by a system call, smart assistants, or alarm clock. Prompt your users to end the phone call, smart assistants, or alarm clock if the local audio capture is required.
localAudioStreamReasonRecordInvalidId
9: (Windows only) The ID of the local audio-capture device is invalid. Prompt the user to check the audio capture device ID.
localAudioStreamReasonPlayoutInvalidId
10: (Windows only) The ID of the local audio-playback device is invalid. Prompt the user to check the audio playback device ID.