public class com.ss.videoarch.liveplayer.VeLivePlayerError
拉流 SDK 错误。
类型 | 默认值 | 名称 |
|---|---|---|
int |
| |
String |
| |
int | -1 |
返回 | 名称 |
|---|---|
VeLivePlayerError |
public int com.ss.videoarch.liveplayer.VeLivePlayerError.mErrorCode
拉流 SDK 错误码。
public String com.ss.videoarch.liveplayer.VeLivePlayerError.mErrorMsg
拉流 SDK 错误信息。
public int com.ss.videoarch.liveplayer.VeLivePlayerError.mSubCode = -1
拉流 SDK 子错误码。
public com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerError( int errorCode, int subCode, String errorMsg )
创建一个包含错误码、子错误码和错误消息的 VeLivePlayerError 实例。
传入参数
参数名 | 类型 | 说明 |
|---|---|---|
errorCode | int | 错误码。 |
subCode | int | 子错误码。 |
errorMsg | String | 错误消息。 |
返回值VeLivePlayerError 实例。
public static class com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode
拉流 SDK 错误码。
类型 | 默认值 | 名称 |
|---|---|---|
int | 0 | |
int | -1 | |
int | -2 | |
int | -3 | |
int | -4 | |
int | -100 | |
int | -101 | |
int | -102 | |
int | -103 | |
int | -200 | |
int | -201 | |
int | -300 | |
int | -301 | |
int | -302 | |
int | -303 | |
int | -304 | |
int | -305 | |
int | -306 | |
int | -307 | |
int | -308 | |
int | -309 | |
int | -310 | |
int | -312 | |
int | -313 | |
int | -314 | |
int | -315 | |
int | -316 | |
int | -317 | |
int | -318 | |
int | -319 | |
int | -320 | |
int | -323 | |
int | -324 | |
int | -325 | |
int | -510 | |
int | -999 |
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerNoError = 0
没有错误。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerInvalidLicense = -1
License 无效。可能是 License 集成错误或已过期导致。
请检查 License 的集成方式和有效期。如果问题仍然存在,请联系火山引擎 技术支持。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerInvalidParameter = -2
传入参数不符合规范。
请检查并重试。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorRefused = -3
调用时机错误导致调用被拒绝。
请检查调用时机并重试。建议在开发阶段处理该错误。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLibraryLoadFailed = -4
加载库文件失败。可能是 SDK 集成错误导致。
请检查 SDK 的集成方式并重试。建议在开发阶段处理该错误。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorPlayUrl = -100
拉流地址不存在或无效。可能是传入的拉流地址为空、格式不合法或长度超限导致。
在开发阶段,你可以通过监控该错误,排查使用问题。如果线上出现该错误,建议通过强提示告知观众播放器不可用,并提醒观众重启播放器。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorNoStreamData = -101
流数据不存在或网络请求数据失败。可能是直播流不存在、直播流中断、直播已结束导致。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorInternalRetryStart = -102
播放器内部重试。可能是播放器内部错误导致。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorInternalRetryFailed = -103
播放器内部重试失败。由于重试次数已达到最大限制,播放器已停止重试。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorDnsParseFailed = -200
DNS 解析失败。可能是拉流地址异常或客户端网络异常导致。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorNetworkRequestFailed = -201
网络请求失败。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorDemuxFailed = -300
解封装失败。可能是使用了播放器不支持的流格式或协议,或音视频流错误导致。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorDecodeFailed = -301
视频解码失败。可能是使用了播放器不支持的直播流音视频格式或解码器出错导致。
建议更换有效的拉流地址、切换到低码率流或提示网络问题。如果问题仍然存在,请联系火山引擎 技术支持。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorAVOutputFailed = -302
渲染失败。可能是音视频输出设备异常导致。
如果线上出现该错误,建议通过强提示告知观众播放器不可用,并提醒观众重启播放器。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSRDeviceUnsupported = -303
当前设备不在超分机型白名单内,不支持超分功能。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSRResolutionUnsupported = -304
当前分辨率超出超分限制。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSRFpsUnsupported = -305
当前帧率超出超分限制。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSRInitFail = -306
超分初始化失败。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSRExecuteFail = -307
超分执行失败。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerLicenseUnsupportedH265 = -308
你使用的基础版 License 不支持 H.265 硬解和软解功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSharpenDeviceUnsupported = -309
当前设备不支持视频锐化功能。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSharpenResolutionUnsupported = -310
当前分辨率超出锐化限制。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSharpenFpsUnsupported = -312
当前帧率超出锐化限制。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorSharpenInitFail = -313
锐化初始化失败。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedH266 = -314
你使用的基础版 License 不支持 H.266 软解功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedABR = -315
你使用的基础版 License 不支持自适应码率(Adaptive Bit-Rate,简称 ABR)功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedDRM = -316
你使用的基础版 License 不支持播放 DRM(Digital Rights Management)加密流。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedSEI = -317
你使用的基础版 License 不支持 SEI(Supplemental Enhancement Information,补充增强信息)消息接收功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedSuperResolution = -318
你使用的基础版 License 不支持超分功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedSharpen = -319
你使用的基础版 License 不支持视频锐化功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedQUIC = -320
你使用的基础版 License 不支持 QUIC 协议。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedRTM = -323
你使用的基础版 License 不支持播放 RTM 流。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedMainBackup = -324
你使用的基础版 License 不支持主备流切换功能。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorLicenseUnsupportedFLVLowLatency = -325
你使用的基础版 License 不支持播放 FLV 低延时流(延时 2-3 秒)。
请购买使用高级版 License。有关如何获取高级版 License,详见 获取 SDK License。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorNotSupportResolutionSwitch = -510
播放器不支持清晰度档位切换。
在开发阶段,你可以通过监控该错误,排查使用问题。请联系火山引擎 技术支持 了解详情。
public static final int com.ss.videoarch.liveplayer.VeLivePlayerError.VeLivePlayerErrorCode.VeLivePlayerErrorInternal = -999
内部错误。
请联系火山引擎 技术支持 了解详情。