LOCAL_AUDIO_STREAM_REASON

Reasons for local audio state changes.

Enumerator

LOCAL_AUDIO_STREAM_REASON_OK
0: The local audio is normal.
LOCAL_AUDIO_STREAM_REASON_FAILURE
1: No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
LOCAL_AUDIO_STREAM_REASON_DEVICE_NO_PERMISSION
2: No permission to use the local audio capturing device. Remind your users to grant permission.
Deprecated:
This enumerator is deprecated. Please use RECORD_AUDIO in the onPermissionError callback instead.
LOCAL_AUDIO_STREAM_REASON_DEVICE_BUSY
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.
LOCAL_AUDIO_STREAM_REASON_RECORD_FAILURE
4: The local audio capture fails.
LOCAL_AUDIO_STREAM_REASON_ENCODE_FAILURE
5: The local audio encoding fails.
LOCAL_AUDIO_STREAM_REASON_NO_RECORDING_DEVICE
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.
LOCAL_AUDIO_STREAM_REASON_NO_PLAYOUT_DEVICE
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.
LOCAL_AUDIO_STREAM_REASON_INTERRUPTED
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.
LOCAL_AUDIO_STREAM_REASON_RECORD_INVALID_ID
9: (Windows only) The ID of the local audio-capture device is invalid. Prompt the user to check the audio capture device ID.
LOCAL_AUDIO_STREAM_REASON_PLAYOUT_INVALID_ID
10: (Windows only) The ID of the local audio-playback device is invalid. Prompt the user to check the audio playback device ID.