WarningCode enum

{zh} * @detail errorcode @brief 回调警告码。
警告码说明 SDK 内部遇到问题正在尝试恢复。警告码仅作通知。

Inheritance
Available extensions

Values

publish_stream_failed → const WarningCode

@brief 发布音视频流失败。
当你在所在房间中发布音视频流时,由于服务器错误导致发布失败。SDK 会自动重试发布。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。

subscribe_stream_failed_404 → const WarningCode

@brief 订阅音视频流失败。
当前房间中找不到订阅的音视频流导致订阅失败。SDK 会自动重试订阅,若仍订阅失败则建议你退出重试。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调通知。

subscribe_stream_failed_5xx → const WarningCode

@brief 订阅音视频流失败。
当你订阅所在房间中的音视频流时,由于服务器错误导致订阅失败。SDK 会自动重试订阅。通过 onVideoSubscribeStateChanged{@link #IRTCRoomEventHandler#onVideoSubscribeStateChanged}、onAudioSubscribeStateChanged{@link #IRTCRoomEventHandler#onAudioSubscribeStateChanged} 回调通知。

publish_stream_forbidden → const WarningCode

@platform android @brief 当调用 setUserVisibility 将自身可见性设置为 false 后,再尝试发布流会触发此警告。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。

send_custom_message → const WarningCode

@brief 发送自定义广播消息失败, 当前你未在房间中。

receive_user_notify_stop → const WarningCode

@brief 当房间内人数超过 500 人时,停止向房间内已有用户发送 onUserJoinedonUserLeave 回调,并通过广播提示房间内所有用户。通过 onRoomStateChanged{@link #IRTCRoomEventHandler#onRoomStateChanged} 回调。

user_in_publish → const WarningCode

@brief 用户已经在其他房间发布过流,或者用户正在发布 WTN 流。通过 onVideoPublishStateChanged{@link #IRTCRoomEventHandler#onVideoPublishStateChanged}、onAudioPublishStateChanged{@link #IRTCRoomEventHandler#onAudioPublishStateChanged} 回调通知。

invalid_canvas_handle → const WarningCode

@platform ios @brief 指定的内部渲染画布句柄无效。
当你调用 setLocalVideoCanvas:{@link #ByteRTCEngine#setLocalVideoCanvas} 或 setRemoteVideoCanvas:withCanvas:{@link #ByteRTCEngine#setRemoteVideoCanvas:withCanvas} 时指定了无效的画布句柄,触发此回调。

no_camera_permission → const WarningCode

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

invalid_sami_app_key_or_token → const WarningCode

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

invalid_sami_resource_path → const WarningCode

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

load_sami_library_failed → const WarningCode

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

invalid_sami_effect_type → const WarningCode

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

in_echo_test_mode → const WarningCode

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

ios_room_already_exist → const WarningCode

@platform ios @deprecated since 3.45 and will be deleted in 3.51. @brief 同样 roomid 的房间已经存在了

no_microphone_permission → const WarningCode

@brief 麦克风权限异常,当前应用没有获取麦克风权限。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceError{@link #MediaDeviceError}.MEDIA_DEVICE_ERROR_NOPERMISSION instead.

audio_device_manager_recording_start_fail → const WarningCode

@brief 音频采集设备启动失败。
启动音频采集设备失败,当前设备可能被其他应用占用。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceError{@link #MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICEFAILURE instead.

audio_device_manager_playout_start_fail → const WarningCode

@brief 音频播放设备启动失败警告。
可能由于系统资源不足,或参数错误。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceError{@link #MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICEFAILURE instead.

no_recording_device → const WarningCode

@brief 无可用音频采集设备。
启动音频采集设备失败,请插入可用的音频采集设备。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceError{@link #MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICENOTFOUND instead.

no_playout_device → const WarningCode

@brief 无可用音频播放设备。
启动音频播放设备失败,请插入可用的音频播放设备。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceError{@link #MediaDeviceError}.MEDIA_DEVICE_ERROR_DEVICENOTFOUND instead.

recording_silence → const WarningCode

@brief 当前音频设备没有采集到有效的声音数据,请检查更换音频采集设备。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceWarning{@link #MediaDeviceWarning}.MEDIA_DEVICE_WARNING_CAPTURE_SILENCE instead.

set_screen_audio_source_type_failed → const WarningCode

@brief 不支持在 publishScreenAudio 之后,调用 setScreenAudioSourceType{@link #RTCEngine#setScreenAudioSourceType} 设置屏幕音频采集类型

set_screen_audio_stream_index_failed → const WarningCode

@brief 不支持在 publishScreenAudio 之后,调用 setScreenAudioStreamIndex 设置屏幕音频共享发布类型

invalid_voice_pitch → const WarningCode

@brief 设置语音音高不合法

invalid_call_for_ext_audio → const WarningCode

@brief 外部音频源新旧接口混用

media_device_operation_denied → const WarningCode

@brief 媒体设备误操作警告。
使用自定义采集时,不可调用内部采集开关,调用时将触发此警告。 @deprecated since 3.33 and will be deleted in 3.51, use MediaDeviceWarning{@link #MediaDeviceWarning}.MEDIA_DEVICE_WARNING_OPERATION_DENIED instead.

WARNING_CODE_INVOKE_ERROR → const WarningCode

@platform android @hidden currently not available @brief 函数调用顺序错误。

WARNING_CODE_INVALID_EXPECT_MEDIA_SERVER_ADDRESS → const WarningCode

@platform android @hidden for internal use only @brief 调度异常,服务器返回的媒体服务器地址不可用。

WARNING_CODE_GET_ROOM_FAILED → const WarningCode

@platform android @deprecated since 3.45 and will be deleted in 3.51. @brief 获取房间信息失败警告 @note SDK 获取房间信息失败(包含超时,返回非 200 的错误码),每隔两秒重试一次。
连续失败 5 次后,报该 warning,并继续重试。
建议提示用户:进入房间失败,请稍后再试

WARNING_CODE_SUBSCRIBE_STREAM_FORBIDEN → const WarningCode

@platform android @deprecated since 3.45 and will be deleted in 3.51. @brief 自动订阅模式未关闭时,尝试开启手动订阅模式会触发此警告。
你需在进房前关闭自动订阅模式,再手动订阅音视频流。

WARNING_CODE_ROOM_ID_ALREADY_EXIST → const WarningCode

@platform android @deprecated since 3.45 and will be deleted in 3.51. @brief 已存在同样 roomId 的房间。

ByteRTCWarningCodeInvokeError → const WarningCode

@platform ios @hidden currently not available @brief 函数调用顺序错误,当前代码中未使用。

ByteRTCWarningCodeInvalidExpectMediaServerAddress → const WarningCode

@platform ios @hidden for internal use only @brief 调度异常,服务器返回的媒体服务器地址不可用。

ByteRTCWarningCodePublishStreamForbidden → const WarningCode

@platform ios @brief 当调用 setUserVisibility: 将自身可见性设置为 false 后,再尝试发布流会触发此警告。通过 rtcRoom:onVideoPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onVideoPublishStateChanged:info:state:reason}、rtcRoom:onAudioPublishStateChanged:info:state:reason:{@link #ByteRTCRoomDelegate#rtcRoom:onAudioPublishStateChanged:info:state:reason} 回调。

ByteRTCWarningCodeSubscribeStreamForbiden → const WarningCode

@platform ios @hidden @deprecated since 3.45 and will be deleted in 3.51. @brief 自动订阅模式未关闭时,尝试开启手动订阅模式会触发此警告。
你需在进房前关闭自动订阅模式,再调用 subscribeStreamVideo:subscribe:{@link #ByteRTCRoom#subscribeStreamVideo:subscribe}/subscribeStreamAudio:subscribe:{@link #ByteRTCRoom#subscribeStreamAudio:subscribe} 方法手动订阅音视频流。

unknown → const WarningCode

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<WarningCode>
A constant List of the values in this enum, in order of their declaration.