AgoraWarningCode Constants Reference

Declared in AgoraEnumerates.h

AgoraWarningCode

Warning code.

Warning codes occur when the SDK encounters an error that may be recovered automatically. These are only notifications, and can generally be ignored. For example, when the SDK loses connection to the server, the SDK reports the AgoraWarningCodeOpenChannelTimeout(106) warning and tries to reconnect automatically.

Constants

AgoraWarningCodeInvalidView

8: The specified view is invalid. Specify a view when using the video call function.

Declared In AgoraEnumerates.h.

AgoraWarningCodeInitVideo

16: Failed to initialize the video function, possibly caused by a lack of resources. The users cannot see the video while the voice communication is not affected.

Declared In AgoraEnumerates.h.

AgoraWarningCodePending

20: The request is pending, usually due to some module not being ready, and the SDK postpones processing the request.

Declared In AgoraEnumerates.h.

AgoraWarningCodeNoAvailableChannel

103: No channel resources are available. Maybe because the server cannot allocate any channel resource.

Declared In AgoraEnumerates.h.

AgoraWarningCodeLookupChannelTimeout

104: A timeout occurs when looking up the channel. When joining a channel, the SDK looks up the specified channel. The warning usually occurs when the network condition is too poor for the SDK to connect to the server.

Declared In AgoraEnumerates.h.

AgoraWarningCodeLookupChannelRejected

105: The server rejects the request to look up the channel. The server cannot process this request or the request is illegal.

DEPRECATED as of v2.4.1. Use AgoraConnectionChangedRejectedByServer(10) in the reason parameter of connectionChangedToState.

Declared In AgoraEnumerates.h.

AgoraWarningCodeOpenChannelTimeout

106: The server rejects the request to look up the channel. The server cannot process this request or the request is illegal.

Declared In AgoraEnumerates.h.

AgoraWarningCodeOpenChannelRejected

107: The server rejects the request to open the channel. The server cannot process this request or the request is illegal.

Declared In AgoraEnumerates.h.

AgoraWarningCodeSwitchLiveVideoTimeout

111: A timeout occurs when switching to the live video.

Declared In AgoraEnumerates.h.

AgoraWarningCodeSetClientRoleTimeout

118: A timeout occurs when setting the client role in the live interactive streaming profile.

Declared In AgoraEnumerates.h.

AgoraWarningCodeSetClientRoleNotAuthorized

119: The client role is unauthorized.

Declared In AgoraEnumerates.h.

AgoraWarningCodeOpenChannelInvalidTicket

121: The ticket to open the channel is invalid.

Declared In AgoraEnumerates.h.

AgoraWarningCodeOpenChannelTryNextVos

122: Try connecting to another server.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAudioMixingOpenError

701: An error occurs in opening the audio mixing file.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmRuntimePlayoutWarning

1014: Audio Device Module: a warning occurs in the playback device.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmRuntimeRecordingWarning

1016: Audio Device Module: a warning occurs in the recording device.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmRecordAudioSilence

1019: Audio device module: No valid audio data is recorded.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmPlaybackMalfunction

1020: Audio Device Module: a playback device fails.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmRecordMalfunction

1021: Audio Device Module: a recording device fails.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmInterruption

1025: Call is interrupted by system events such as phone call or siri etc.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmCategoryNotPlayAndRecord

1029: During a call, AudioSessionCategory should be set to AVAudioSessionCategoryPlayAndRecord, and the SDK monitors this value. If the AudioSessionCategory is set to other values, this warning code is triggered and the SDK will forcefully set it back to AVAudioSessionCategoryPlayAndRecord.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmRecordAudioLowlevel

1031: Audio Device Module: the recorded audio is too low.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmPlayoutAudioLowlevel

1032: Audio Device Module: the playback audio is too low.

Declared In AgoraEnumerates.h.

AgoraWarningCodeAdmNoDataReadyCallback

1040: Audio device module: An error occurs in the audio driver. Solution:

  • Restart your audio device.
  • Restart your device where the app runs.
  • Upgrade the sound card drive.
  • Declared In AgoraEnumerates.h.

    AgoraWarningCodeAdmInconsistentDevices

    1042: Audio device module: The audio recording device is different from the audio playback device, which may cause echoes problem. Agora recommends using the same audio device to record and playback audio.

    Declared In AgoraEnumerates.h.

    AgoraWarningCodeApmHowling

    1051: (Communication profile only) Audio Processing Module: A howling sound is detected when recording the audio data

    Declared In AgoraEnumerates.h.

    AgoraWarningCodeAdmGlitchState

    1052: Audio Device Module: the device is in the glitch state.

    Declared In AgoraEnumerates.h.

    AgoraWarningCodeApmResidualEcho

    1053: Audio Processing Module: A residual echo is detected, which may be caused by the belated scheduling of system threads or the signal overflow.

    Declared In AgoraEnumerates.h.

    Declared In

    AgoraEnumerates.h

    X
    Is this page helpful?