WarningCode enum

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 OpenChannelTimeout(106) warning and tries to reconnect automatically. See WarningCode.OpenChannelTimeout.

Inheritance

Constructors

WarningCode()
const

Values

InvalidView → const WarningCode

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

InitVideo → const WarningCode

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.

Pending → const WarningCode

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

NoAvailableChannel → const WarningCode

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

LookupChannelTimeout → const WarningCode

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.

LookupChannelRejected → const WarningCode

The server rejects the request to look up the channel. The server cannot process this request or the request is illegal. Agora recommends that you use ConnectionChangedReason.RejectedByServer in the reason parameter of RtcEngineEventHandler.connectionStateChanged instead.

OpenChannelTimeout → const WarningCode

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

OpenChannelRejected → const WarningCode

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

SwitchLiveVideoTimeout → const WarningCode

A timeout occurs when switching to the live video.

SetClientRoleTimeout → const WarningCode

A timeout occurs when setting the client role in the LiveBroadcasting profile.

SetClientRoleNotAuthorized → const WarningCode

The client role is unauthorized.

OpenChannelInvalidTicket → const WarningCode

The ticket to open the channel is invalid.

OpenChannelTryNextVos → const WarningCode

Try connecting to another server.

AudioMixingOpenError → const WarningCode

An error occurs in opening the audio mixing file.

AdmRuntimePlayoutWarning → const WarningCode

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

AdmRuntimeRecordingWarning → const WarningCode

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

AdmRecordAudioSilence → const WarningCode

Audio Device Module: no valid audio data is collected.

AdmPlaybackMalfunction → const WarningCode

Audio Device Module: a playback device fails.

AdmRecordMalfunction → const WarningCode

Audio Device Module: a recording device fails.

AdmInterruption → const WarningCode

Audio Device Module: call is interrupted by system events such as phone call or siri etc.

AdmCategoryNotPlayAndRecord → const WarningCode

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.

AdmRecordAudioLowlevel → const WarningCode

Audio Device Module: the recorded audio is too low.

AdmPlayoutAudioLowlevel → const WarningCode

Audio Device Module: the playback audio is too low.

AdmRecordIsOccupied → const WarningCode

Audio Device Module: The recording device is busy.

AdmNoDataReadyCallback → const WarningCode

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

  • Restart your audio device.
  • Restart your device where the app runs.
  • Upgrade the sound card drive.
AdmInconsistentDevices → const WarningCode

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.

ApmHowling → const WarningCode

Audio Device Module: howling is detected.

AdmGlitchState → const WarningCode

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

ApmResidualEcho → const WarningCode

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

SuperResolutionStreamOverLimitation → const WarningCode

Super-resolution warning: the original video dimensions of the remote user exceed 640*480.

SuperResolutionUserCountOverLimitation → const WarningCode

Super-resolution warning: another user is using super resolution.

SuperResolutionDeviceNotSupported → const WarningCode

Super-resolution warning: The device is not supported.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<WarningCode>
A constant List of the values in this enum, in order of their declaration.