ByteRTCErrorCode enum

Inheritance
Available extensions

Values

ByteRTCErrorCodeInvalidToken → const ByteRTCErrorCode

@brief Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。
调用 joinRoom:userInfo:userVisibility:roomConfig:{@link #ByteRTCRoom#joinRoom:userInfo:userVisibility:roomConfig} 进房时使用的 Token 参数有误或过期失效。需要重新获取 Token,并调用 updateToken:{@link #ByteRTCRTSRoom#updateToken} 方法更新 Token。

ByteRTCErrorCodeJoinRoom → const ByteRTCErrorCode

@brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。
进房时发生未知错误导致加入房间失败。需要用户重新加入房间。

ByteRTCErrorCodeNoPublishPermission → const ByteRTCErrorCode

@brief 没有发布音视频流权限。通过以下回调通知: rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason}。
用户在所在房间中发布音视频流失败,失败原因为用户没有发布流的权限。

ByteRTCErrorCodeNoSubscribePermission → const ByteRTCErrorCode

@brief 没有订阅音视频流权限。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason}。
用户订阅所在房间中的音视频流失败,失败原因为用户没有订阅流的权限。

ByteRTCErrorCodeDuplicateLogin → const ByteRTCErrorCode

@brief 相同用户 ID 的用户加入本房间,当前用户被踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeKickedOut → const ByteRTCErrorCode

@brief 服务端调用 OpenAPI 将当前用户踢出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeRoomIdIllegal → const ByteRTCErrorCode

@brief 当调用 createRtcRoom: ,如果 roomId 非法,会返回 null,并抛出该错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeTokenExpired → const ByteRTCErrorCode

@brief Token 过期。加入房间后 Token 过期时,返回此错误码。需使用新的 Token 重新加入房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeUpdateTokenWithInvalidToken → const ByteRTCErrorCode

@brief 调用 updateToken: 传入的 Token 无效。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeRoomDismiss → const ByteRTCErrorCode

@brief 服务端调用 OpenAPI 解散房间,所有用户被移出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCJoinRoomWithoutLicenseAuthenticateSDK → const ByteRTCErrorCode

@hidden internal use only @brief 加入房间错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。
调用 joinRoom:userInfo:roomConfig: 方法时, LICENSE 计费账号未使用 LICENSE_AUTHENTICATE SDK,加入房间错误。

ByteRTCRoomAlreadyExist → const ByteRTCErrorCode

@brief 通话回路检测已经存在同样 roomId 的房间了。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCUserIDDifferent → const ByteRTCErrorCode

@brief 加入多个房间时使用了不同的 uid。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。
同一个引擎实例中,用户需使用同一个 uid 加入不同的房间。

ByteRTCErrorCodeJoinRoomServerLicenseExpired → const ByteRTCErrorCode

@hidden internal use only @brief 服务端 license 过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomExceedsTheUpperLimit → const ByteRTCErrorCode

@hidden internal use only @brief 超过服务端 license 许可的并发量上限,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomLicenseParameterError → const ByteRTCErrorCode

@hidden internal use only @brief license 参数错误,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomLicenseFilePathError → const ByteRTCErrorCode

@hidden internal use only @brief license 证书路径错误。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomLicenseIllegal → const ByteRTCErrorCode

@hidden internal use only @brief license 证书不合法。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomLicenseExpired → const ByteRTCErrorCode

@hidden internal use only @brief license 证书已经过期,拒绝进房。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomLicenseInformationNotMatch → const ByteRTCErrorCode

@hidden internal use only @brief license 证书内容不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomLicenseNotMatchWithCache → const ByteRTCErrorCode

@hidden internal use only @brief license 当前证书与缓存证书不匹配。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomRoomForbidden → const ByteRTCErrorCode

@brief 房间被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeJoinRoomUserForbidden → const ByteRTCErrorCode

@brief 用户被封禁。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。

ByteRTCErrorCodeOverStreamSubscribeLimit → const ByteRTCErrorCode

@brief 订阅音视频流失败,订阅音视频流总数超过上限。通过以下回调通知: rtcRoom:onVideoSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoSubscribeStateChanged:info:state:reason}、rtcRoom:onAudioSubscribeStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioSubscribeStateChanged:info:state:reason}。
游戏场景下,为了保证音视频通话的性能和质量,服务器会限制用户订阅的音视频流总数。当用户订阅的音视频流总数已达上限时,继续订阅更多流时会失败,同时用户会收到此错误通知。

ByteRTCErrorCodeOverStreamPublishLimit → const ByteRTCErrorCode

@brief 发布流失败,发布流总数超过上限。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason} 回调。
RTC 系统会限制单个房间内发布的总流数,总流数包括视频流、音频流和屏幕流。如果房间内发布流数已达上限时,本地用户再向房间中发布流时会失败,同时会收到此错误通知。

ByteRTCErrorCodeAbnormalServerStatus → const ByteRTCErrorCode

@brief 服务端异常状态导致退出房间。通过 rtcRoom:onRoomStateChanged:withUid:state:extraInfo:{@link #ByteRTCRoomDelegate#rtcRoom:onRoomStateChanged:withUid:state:extraInfo} 回调。
SDK 与信令服务器断开,并不再自动重连,可联系技术支持。

ByteRTCErrorCodeMultiRoomUnpublishFailed → const ByteRTCErrorCode

@hidden for internal use only @brief 在一路流推多房间的场景下,在至少有两个房间在发布同一路流时,其中一个房间取消发布失败,此时需要业务方重试或者由业务方通知用户重试取消发布。

ByteRTCErrorCodeWrongAreaCode → const ByteRTCErrorCode

@hidden for internal use only @brief 指定服务区域时传入错误参数。

ByteRTCErrorCodeDeadLockNotify → const ByteRTCErrorCode

@hidden for internal use only @brief notify deadlock

ByteRTCErrorCodeOverVideoPublishLimit → const ByteRTCErrorCode

@deprecated since 3.52, use ByteRTCErrorCodeOverStreamPublishLimit-1080)instead @brief 发布视频流总数超过上限。
RTC 系统会限制单个房间内发布的视频流数。如果房间内发布视频流数已达上限时,本地用户再向房间中发布视频流时会失败,同时会收到此错误通知。

ByteRTCErrorCodInvalidAudioSyncUidRepeated → const ByteRTCErrorCode

@deprecated since 3.60, use ByteRTCAVSyncEventInvalidUidRepeated = 0 carried by rtcRoom:onAVSyncEvent:userId:eventCode:{@link #ByteRTCRoomDelegate#rtcRoom:onAVSyncEvent:userId:eventCode} instead. @brief 音视频同步失败。
当前音频源已与其他视频源关联同步关系。
单个音频源不支持与多个视频源同时同步。
通过 rtcRoom:onStreamStateChanged:withUid:state:extraInfo: 回调。

Properties

$value → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<ByteRTCErrorCode>
A constant List of the values in this enum, in order of their declaration.