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: 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.