WarningCode enum Null safety

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.

Constants

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.

@JsonValue(1029)
const WarningCode(20)
AdmGlitchState → const WarningCode

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

@JsonValue(1052)
const WarningCode(27)
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.

@JsonValue(1042)
const WarningCode(25)
AdmInterruption → const WarningCode

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

@JsonValue(1025)
const WarningCode(19)
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.
@JsonValue(1040)
const WarningCode(24)
AdmPlaybackMalfunction → const WarningCode

Audio Device Module: a playback device fails.

@JsonValue(1020)
const WarningCode(17)
AdmPlayoutAudioLowlevel → const WarningCode

Audio Device Module: the playback audio is too low.

@JsonValue(1032)
const WarningCode(22)
AdmRecordAudioLowlevel → const WarningCode

Audio Device Module: the recorded audio is too low.

@JsonValue(1031)
const WarningCode(21)
AdmRecordAudioSilence → const WarningCode

Audio Device Module: no valid audio data is collected.

@JsonValue(1019)
const WarningCode(16)
AdmRecordIsOccupied → const WarningCode

Audio Device Module: The recording device is busy.

@JsonValue(1033)
const WarningCode(23)
AdmRecordMalfunction → const WarningCode

Audio Device Module: a recording device fails.

@JsonValue(1021)
const WarningCode(18)
AdmRuntimePlayoutWarning → const WarningCode

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

@JsonValue(1014)
const WarningCode(14)
AdmRuntimeRecordingWarning → const WarningCode

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

@JsonValue(1016)
const WarningCode(15)
ApmHowling → const WarningCode

Audio Device Module: howling is detected.

@JsonValue(1051)
const WarningCode(26)
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.

@JsonValue(1053)
const WarningCode(28)
AudioMixingOpenError → const WarningCode

An error occurs in opening the audio mixing file.

@JsonValue(701)
const WarningCode(13)
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.

@JsonValue(16)
const WarningCode(1)
InvalidView → const WarningCode

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

@JsonValue(8)
const WarningCode(0)
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.

@JsonValue(105)
const WarningCode(5)
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.

@JsonValue(104)
const WarningCode(4)
NoAvailableChannel → const WarningCode

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

@JsonValue(103)
const WarningCode(3)
OpenChannelInvalidTicket → const WarningCode

The ticket to open the channel is invalid.

@JsonValue(121)
const WarningCode(11)
OpenChannelRejected → const WarningCode

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

@JsonValue(107)
const WarningCode(7)
OpenChannelTimeout → const WarningCode

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

@JsonValue(106)
const WarningCode(6)
OpenChannelTryNextVos → const WarningCode

Try connecting to another server.

@JsonValue(122)
const WarningCode(12)
Pending → const WarningCode

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

@JsonValue(20)
const WarningCode(2)
SetClientRoleNotAuthorized → const WarningCode

The client role is unauthorized.

@JsonValue(119)
const WarningCode(10)
SetClientRoleTimeout → const WarningCode

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

@JsonValue(118)
const WarningCode(9)
SuperResolutionDeviceNotSupported → const WarningCode

Super-resolution warning: The device is not supported.

@JsonValue(1612)
const WarningCode(31)
SuperResolutionStreamOverLimitation → const WarningCode

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

@JsonValue(1610)
const WarningCode(29)
SuperResolutionUserCountOverLimitation → const WarningCode

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

@JsonValue(1611)
const WarningCode(30)
SwitchLiveVideoTimeout → const WarningCode

A timeout occurs when switching to the live video.

@JsonValue(111)
const WarningCode(8)
values → const List<WarningCode>

A constant List of the values in this enum, in order of their declaration.

const List<WarningCode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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