LOCAL_AUDIO_STREAM_ERROR
Local audio state error codes.
Enumerator
- LOCAL_AUDIO_STREAM_ERROR_OK
- 0: The local audio is normal.
- LOCAL_AUDIO_STREAM_ERROR_FAILURE
- 1: No specified reason for the local audio failure. Remind your users to try to rejoin the channel.
- LOCAL_AUDIO_STREAM_ERROR_DEVICE_NO_PERMISSION
- 2: No permission to use the local audio capturing device. Remind your users to grant permission.
- Deprecated:
- This enumerator is deprecated. Please use RECORD_AUDIO in the onPermissionError callback instead.
- LOCAL_AUDIO_STREAM_ERROR_DEVICE_BUSY
- 3: (Android and iOS only) The local audio capture device is used. 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.
- LOCAL_AUDIO_STREAM_ERROR_RECORD_FAILURE
- 4: The local audio capture fails.
- LOCAL_AUDIO_STREAM_ERROR_ENCODE_FAILURE
- 5: The local audio encoding fails.
- LOCAL_AUDIO_STREAM_ERROR_NO_RECORDING_DEVICE
- 6: (Windows only) The application cannot find the local audio capture device. Remind your users to check whether the microphone is connected to the device properly in the control plane of the device or if the microphone is working properly.
- LOCAL_AUDIO_STREAM_ERROR_NO_PLAYOUT_DEVICE
- 7: (Windows only) The application cannot find the local audio playback device. Remind your users to check whether the speaker is connected to the device properly in the control plane of the device or if the speaker is working properly.
- LOCAL_AUDIO_STREAM_ERROR_INTERRUPTED
- 8: (Android and iOS only) 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.
- LOCAL_AUDIO_STREAM_ERROR_RECORD_INVALID_ID
- 9: (Windows only) The ID of the local audio-capture device is invalid. Check the audio capture device ID.
- LOCAL_AUDIO_STREAM_ERROR_PLAYOUT_INVALID_ID
- 10: (Windows only) The ID of the local audio-playback device is invalid. Check the audio playback device ID.