WarningCode enum

回调警告码

警告码说明 SDK 内部遇到问题正在尝试恢复。
警告码仅作通知。

Inheritance

Constructors

WarningCode()
const

Values

unknown → const WarningCode

未知警告码

joinRoomFailed → const WarningCode

进房失败

初次进房或者由于网络状况不佳断网重连时,由于服务器错误导致进房失败。
SDK 会自动重试进房。

publishStreamFailed → const WarningCode

发布音视频流失败

当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。
SDK 会自动重试发布。

subscribeStreamFailed404 → const WarningCode

当前房间中找不到订阅的音视频流导致订阅失败

SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。

subscribeStreamFailed5xx → const WarningCode

服务器错误导致订阅失败

SDK 会自动重试订阅。

publishStreamForbidden → const WarningCode

当调用 RTCRoom.setUserVisibility 将自身可见性设置为 false 后,再尝试发布流会触发此警告

sendCustomMessage → const WarningCode

发送自定义广播消息失败, 本地用户未在房间中

receiveUserNotifyStop → const WarningCode

当房间内人数超过 500 人时,停止向房间内已有用户发送 RTCRoomEventHandler.onUserJoinedRTCRoomEventHandler.onUserLeave 回调,并通过广播提示房间内所有用户

userInPublish → const WarningCode

用户已经在其他房间发布过流,或者用户正在发布公共流

roomIdAlreadyExist → const WarningCode

同样 roomId 的房间已经存在

oldRoomBeenReplaced → const WarningCode

相同 roomId 的新房间已替代旧房间

inEchoTestMode → const WarningCode

当前正在进行回路测试,该接口调用无效

noCameraPermission → const WarningCode

摄像头权限异常,当前应用没有获取摄像头权限

noMicrophonePermission → const WarningCode

麦克风权限异常,当前应用没有获取麦克风权限

audioDeviceManagerRecordingStartFail → const WarningCode

音频采集设备启动失败。

启动音频采集设备失败,当前设备可能被其他应用占用。

audioDeviceManagerPlayoutStartFail → const WarningCode

音频播放设备启动失败警告。

可能由于系统资源不足,或参数错误。

noRecordingDevice → const WarningCode

无可用音频采集设备。

启动音频采集设备失败,请插入可用的音频采集设备。

noPlayoutDevice → const WarningCode

无可用音频播放设备。

启动音频播放设备失败,请插入可用的音频播放设备。

recordingSilence → const WarningCode

当前音频设备没有采集到有效的声音数据,请检查更换音频采集设备。

mediaDeviceOperationDenied → const WarningCode

媒体设备误操作警告。

使用自定义采集时,不可调用内部采集开关,调用时触发此警告。

setScreenAudioSourceTypeFailed → const WarningCode

不支持在 RTCRoom.publishScreen 之后,切换屏幕音频采集源

setScreenAudioStreamIndexFailed → const WarningCode

不支持在 RTCRoom.publishScreen 之后,调用 RTCVideo.setScreenAudioStreamIndex 设置屏幕音频共享发布类型

invalidVoicePitch → const WarningCode

设置语音音高不合法

invalidCallForExtAudio → const WarningCode

外部音频源新旧接口混用

invalidCanvasHandle → const WarningCode

适用于iOS,指定的内部渲染画布句柄无效

invalidSamiAppKeyOrToken → const WarningCode

音频技术 SDK 鉴权失效。联系技术支持人员。

invalidSamiResourcePath → const WarningCode

音频技术 资源加载失败。传入正确的 DAT 路径,或联系技术支持人员。

loadSamiLibraryFailed → const WarningCode

音频技术 库加载失败。使用正确的库,或联系技术支持人员。

invalidSamiEffectType → const WarningCode

音频技术 不支持此音效。联系技术支持人员。

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.