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: 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.
LocalAudioStreamReasonInterrupted
8: The local audio capture is interrupted by a system call, Siri, or alarm clock. Remind your users to end the phone call, Siri, or alarm clock if the local audio capture is required.