LOCAL_AUDIO_STREAM_REASON
The reason for the change in local audio state.
Enumerations
- LOCAL_AUDIO_STREAM_REASON_OK
- (0): The local audio state is normal.
- LOCAL_AUDIO_STREAM_REASON_FAILURE
- (1): An unknown error occurred in the local audio. It is recommended that the user try rejoining the channel.
- LOCAL_AUDIO_STREAM_REASON_DEVICE_NO_PERMISSION
- (2): No permission to use the local audio capturing device. It is recommended that the user grant microphone permission.
- LOCAL_AUDIO_STREAM_REASON_DEVICE_BUSY
- (3): (Android and iOS only) The local audio capturing device is occupied. It is recommended that the user check whether another app is using the microphone. Audio capturing will automatically resume about five seconds after the microphone becomes idle, or the user can rejoin the channel after it becomes idle.
- LOCAL_AUDIO_STREAM_REASON_RECORD_FAILURE
- (4): Failed to capture local audio.
- LOCAL_AUDIO_STREAM_REASON_ENCODE_FAILURE
- (5): Failed to encode local audio.
- LOCAL_AUDIO_STREAM_REASON_NO_RECORDING_DEVICE
- (6): (Windows and macOS only) No local audio capturing device detected. It is recommended that the user check in the device control panel whether the microphone is properly connected or functioning.
- LOCAL_AUDIO_STREAM_REASON_NO_PLAYOUT_DEVICE
- (7): (Windows and macOS only) No local audio playback device detected. It is recommended that the user check in the device control panel whether the speaker is properly connected or functioning.
- LOCAL_AUDIO_STREAM_REASON_INTERRUPTED
- (8): (Android and iOS only) Local audio capturing is interrupted by system phone call, smart assistant, or alarm. To continue capturing audio, it is recommended that the user end the related task.
- LOCAL_AUDIO_STREAM_REASON_RECORD_INVALID_ID
- (9): (Windows only) The ID of the local audio capturing device is invalid. It is recommended that the user check whether the audio capturing device ID is correct.
- LOCAL_AUDIO_STREAM_REASON_PLAYOUT_INVALID_ID
- (10): (Windows only) The ID of the local audio playback device is invalid. It is recommended that the user check whether the audio playback device ID is correct.