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.
LocalAudioStreamReasonRecordFailure
4: The local audio capture fails.
LocalAudioStreamReasonEncodeFailure
5: The local audio encoding fails.
LocalAudioStreamReasonNoRecordingDevice
6: 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: 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.
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.