LocalAudioStreamReason

Reason for local audio state change.

Enumerations

LocalAudioStreamReasonOk
0: Local audio state is normal.
LocalAudioStreamReasonFailure
1: The cause of the local audio error is unclear. It is recommended to prompt the user to try rejoining the channel.
LocalAudioStreamReasonDeviceNoPermission
2: No permission to start the local audio capture device. Prompt the user to enable the permission.
Note: Deprecated: This enumeration is deprecated. Use the onPermissionError callback with RecordAudio instead.
LocalAudioStreamReasonDeviceBusy
3: The local audio capture device is already in use. Prompt the user to check whether the microphone is occupied by another app. Local audio capture will automatically resume about 5 seconds after the microphone becomes idle. You can also try rejoining the channel after the microphone is idle.
LocalAudioStreamReasonRecordFailure
4: Local audio capture failed.
LocalAudioStreamReasonEncodeFailure
5: Local audio encoding failed.
LocalAudioStreamReasonInterrupted
8: Local audio capture was interrupted by system phone call, voice assistant, or alarm. To resume local audio capture, ask the user to end the call, voice assistant, or alarm.