警告回调表示 SDK 运行时出现了(网络或媒体相关的)警告。通常情况下,SDK 上报的警告信息 App 可以忽略, SDK 会自动恢复。比如和服务器失去连接时,SDK 可能会上报 `OpenChannelTimeout 警告,同时自动尝试重连。 详见 WarningCode.OpenChannelTimeout。
Constants
-
AdmCategoryNotPlayAndRecord → const WarningCode
在通话过程中,
AudioSessionCategory必须设置成AVAudioSessionCategoryPlayAndRecord。 SDK 会监控这个属性值。如果你将AudioSessionCategory设为其他值,SDK 会触发该警告,并强制设置回AVAudioSessionCategoryPlayAndRecord。@since v4.0.0。@JsonValue(1029)const WarningCode(20) -
AdmGlitchState → const WarningCode
音频设备模块:音频播放会卡顿。@JsonValue(1052)
const WarningCode(27) -
AdmImproperSettings → const WarningCode
音频设备模块:音频底层设置被修改。@JsonValue(1053)
const WarningCode(28) -
AdmInconsistentDevices → const WarningCode
音频设备模块:音频采集设备和播放设备不一致,可能引起回声,建议使用同一设备采集和播放音频。@since v4.0.0。@JsonValue(1042)
const WarningCode(25) -
AdmInterruption → const WarningCode
播放或录制音频时被系统事件(如来电)干扰。@JsonValue(1025)
const WarningCode(19) -
AdmNoDataReadyCallback → const WarningCode
音频设备模块:音频驱动器发生异常。解决方案:禁用并重新启用音频设备重启 app 运行设备更新声卡驱动@since v4.0.0。@JsonValue(1040)
const WarningCode(24) -
AdmPlaybackMalfunction → const WarningCode
音频设备模块:播放设备异常。@JsonValue(1020)
const WarningCode(17) -
AdmPlayoutAudioLowlevel → const WarningCode
音频设备模块:播放的声音太低。@JsonValue(1032)
const WarningCode(22) -
AdmRecordAudioLowlevel → const WarningCode
音频设备模块:录到的声音太低。@JsonValue(1031)
const WarningCode(21) -
AdmRecordAudioSilence → const WarningCode
音频设备模块:没有采集到有效的声音数据。@JsonValue(1019)
const WarningCode(16) -
AdmRecordIsOccupied → const WarningCode
音频设备模块:录制设备被占用。@JsonValue(1033)
const WarningCode(23) -
AdmRecordMalfunction → const WarningCode
音频设备模块:录音设备异常。@JsonValue(1021)
const WarningCode(18) -
AdmRuntimePlayoutWarning → const WarningCode
音频设备模块:运行时播放设备出现警告。@JsonValue(1014)
const WarningCode(14) -
AdmRuntimeRecordingWarning → const WarningCode
音频设备模块:运行时录音设备出现警告。@JsonValue(1016)
const WarningCode(15) -
ApmHowling → const WarningCode
(仅通信场景)音频信号处理模块:录制音频时监测到啸叫。@JsonValue(1051)
const WarningCode(26) -
AudioMixingOpenError → const WarningCode
打开伴奏出错。@JsonValue(701)
const WarningCode(13) -
InitVideo → const WarningCode
初始化视频功能失败。有可能是因视频资源被占用导致的。用户无法看到视频画面,但不影响语音通信。@JsonValue(16)
const WarningCode(1) -
InvalidView → const WarningCode
指定的 view 无效,使用视频功能时需要指定 view,如果 view 尚未指定,则返回该警告。@JsonValue(8)
const WarningCode(0) -
LookupChannelRejected → const WarningCode
查找频道请求被服务器拒绝。服务器可能没有办法处理这个请求或请求是非法的。Deprecated 已废弃。请改用
connectionStateChanged回调 中的RejectedByServer(10)。 详见 ConnectionChangedReason.RejectedByServer 和 RtcEngineEventHandler.connectionStateChanged。@JsonValue(105)const WarningCode(5) -
LookupChannelTimeout → const WarningCode
查找频道超时。在加入频道时 SDK 先要查找指定的频道,出现该警告一般是因为网络太差,连接不到服务器。@JsonValue(104)
const WarningCode(4) -
NoAvailableChannel → const WarningCode
没有可用的频道资源。可能是因为服务端没法分配频道资源。@JsonValue(103)
const WarningCode(3) -
OpenChannelInvalidTicket → const WarningCode
TICKET 非法,打开频道失败。@JsonValue(121)
const WarningCode(11) -
OpenChannelRejected → const WarningCode
打开频道请求被服务器拒绝。服务器可能没有办法处理该请求或该请求是非法的。@JsonValue(107)
const WarningCode(7) -
OpenChannelTimeout → const WarningCode
打开频道超时。查找到指定频道后,SDK 接着打开该频道,超时一般是因为网络太差,连接不到服务器。@JsonValue(106)
const WarningCode(6) -
OpenChannelTryNextVos → const WarningCode
尝试打开另一个服务器。@JsonValue(122)
const WarningCode(12) -
Pending → const WarningCode
请求处于待定状态。一般是由于某个模块还没准备好,请求被延迟处理。@JsonValue(20)
const WarningCode(2) -
SetClientRoleNotAuthorized → const WarningCode
用户角色未授权。@JsonValue(119)
const WarningCode(10) -
SetClientRoleTimeout → const WarningCode
直播场景下设置用户角色超时。@JsonValue(118)
const WarningCode(9) -
SwitchLiveVideoTimeout → const WarningCode
切换直播视频超时。@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
-
The hash code for this object. [...]read-only, inherited
-
index → int
The integer index of this enum.final
-
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
-
Returns a string representation of this object.override
Operators
-
operator ==(Object other) → bool
The equality operator. [...]inherited

