LocalAudioStreamReason
Reasons for local audio state change.
Enumerations
- localAudioStreamReasonOk
- 0: Local audio is working properly.
- localAudioStreamReasonFailure
- 1: Unknown reason for local audio failure. Suggest prompting the user to try rejoining the channel.
- localAudioStreamReasonDeviceNoPermission
- 2: No permission to start local audio capture device. Prompt the user to grant permission.
Note: Deprecated: This enum is deprecated. Use
recordAudioin the onPermissionError callback instead. - localAudioStreamReasonDeviceBusy
- 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 about 5 seconds after the microphone becomes idle, or you can try rejoining the channel after it becomes idle.
- localAudioStreamReasonRecordFailure
- 4: Local audio capture failed.
- localAudioStreamReasonEncodeFailure
- 5: Local audio encoding failed.
- localAudioStreamReasonNoRecordingDevice
- 6: (Windows and macOS only) No local audio capture device. Prompt the user to check in the control panel whether the microphone is properly connected and working.
- localAudioStreamReasonNoPlayoutDevice
- 7: (Windows and macOS only) No local audio playback device. Prompt the user to check in the control panel whether the speaker is properly connected and working.
- localAudioStreamReasonInterrupted
- 8: (Android and iOS only) Local audio capture was interrupted by system call, smart assistant, or alarm. To resume local audio capture, ask the user to end the call, assistant, or alarm.
- localAudioStreamReasonRecordInvalidId
- 9: (Windows only) Invalid ID for local audio capture device. Prompt the user to check the audio capture device ID.
- localAudioStreamReasonPlayoutInvalidId
- 10: (Windows only) Invalid ID for local audio playback device. Prompt the user to check the audio playback device ID.