LOCAL_AUDIO_STREAM_REASON
Reason for local audio state change.
Enumerations
- LOCAL_AUDIO_STREAM_REASON_OK
- 0: Local audio state is normal.
- LOCAL_AUDIO_STREAM_REASON_FAILURE
- 1: Local audio error with unknown reason. Suggest prompting the user to rejoin the channel.
- LOCAL_AUDIO_STREAM_REASON_DEVICE_NO_PERMISSION
- 2: No permission to start local audio capture device. Prompt the user to grant permission.
- LOCAL_AUDIO_STREAM_REASON_DEVICE_BUSY
- 3: (Android and iOS only) Local audio capture device is in use. Prompt the user to check if the microphone is occupied by another app. Local audio capture will automatically resume after the microphone is idle for about 5 seconds, or you can try rejoining 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 capture device. Prompt the user to check if the microphone is properly connected and working in the device control panel.
- LOCAL_AUDIO_STREAM_REASON_NO_PLAYOUT_DEVICE
- 7: (Windows and macOS only) No local audio playback device. Prompt the user to check if the speaker is properly connected and working in the device control panel.
- LOCAL_AUDIO_STREAM_REASON_INTERRUPTED
- 8: (Android and iOS only) Local audio capture was interrupted by incoming calls, voice assistants, or alarms. To resume local audio capture, ask the user to end the call, assistant, or alarm.
- LOCAL_AUDIO_STREAM_REASON_RECORD_INVALID_ID
- 9: (Windows only) Invalid ID of the local audio capture device. Prompt the user to check the audio capture device ID.
- LOCAL_AUDIO_STREAM_REASON_PLAYOUT_INVALID_ID
- 10: (Windows only) Invalid ID of the local audio playback device. Prompt the user to check the audio playback device ID.