You need to enable JavaScript to run this app.
导航

错误码

最近更新时间2024.04.19 14:57:37

首次发布时间2023.03.16 14:24:57

VeLivePlayerError
public class VeLivePlayerError

直播播放错误。

成员变量

类型默认值名称
int-mErrorCode
String-mErrorMsg

成员函数

返回名称
VeLivePlayerErrorVeLivePlayerError
VeLivePlayerErrorVeLivePlayerError

变量说明

mErrorCode

public int mErrorCode

直播播放错误码。

mErrorMsg

public String mErrorMsg

直播播放错误信息。

函数说明

VeLivePlayerError

public VeLivePlayerError(int errorCode)

创建一个包含错误代码的错误对象。

传入参数

参数名类型说明
errorCodeint错误码。

VeLivePlayerError

public VeLivePlayerError(
    int errorCode,
    String errorMsg
)

创建一个包含错误代码和错误消息的错误对象。

传入参数

参数名类型说明
errorCodeint错误码。
errorMsgString错误消息。

VeLivePlayerErrorCode
public static class VeLivePlayerErrorCode

直播播放错误码。

成员变量

类型默认值名称
int0VeLivePlayerNoError
int-1VeLivePlayerInvalidLicense
int-2VeLivePlayerInvalidParameter
int-3VeLivePlayerErrorRefused
int-4VeLivePlayerErrorLibraryLoadFailed
int-100VeLivePlayerErrorPlayUrl
int-101VeLivePlayerErrorNoStreamData
int-102VeLivePlayerErrorInternalRetryStart
int-103VeLivePlayerErrorInternalRetryFailed
int-200VeLivePlayerErrorDnsParseFailed
int-201VeLivePlayerErrorNetworkRequestFailed
int-300VeLivePlayerErrorDemuxFailed
int-301VeLivePlayerErrorDecodeFailed
int-302VeLivePlayerErrorAVOutputFailed
int-303VeLivePlayerErrorSRDeviceUnsupported
int-304VeLivePlayerErrorSRResolutionUnsupported
int-305VeLivePlayerErrorSRFpsUnsupported
int-306VeLivePlayerErrorSRInitFail
int-307VeLivePlayerErrorSRExecuteFail
int-308VeLivePlayerLicenseUnsupportedH265
int-999VeLivePlayerErrorInternal

变量说明

VeLivePlayerNoError

public static int VeLivePlayerNoError = 0

没有错误。

VeLivePlayerInvalidLicense

public static int VeLivePlayerInvalidLicense = -1

License 无效。可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。

VeLivePlayerInvalidParameter

public static int VeLivePlayerInvalidParameter = -2

调用时传入的参数不合法。请检查入参,并重新调用。

VeLivePlayerErrorRefused

public static int VeLivePlayerErrorRefused = -3

调用被拒绝。方法调用时机不合法,请检查调用时机。

VeLivePlayerErrorLibraryLoadFailed

public static int VeLivePlayerErrorLibraryLoadFailed = -4

加载库文件失败。可能是 SDK 集成错误,请检查 SDK 集成方式。

VeLivePlayerErrorPlayUrl

public static int VeLivePlayerErrorPlayUrl = -100

播放地址不存在或无效。可能是播放地址为空、地址格式不合法或地址长度不合法,请检查播放地址。

VeLivePlayerErrorNoStreamData

public static int VeLivePlayerErrorNoStreamData = -101

无法获取流数据。可能是直播流不存在、直播流中断或直播已结束,请检查直播状态。

VeLivePlayerErrorInternalRetryStart

public static int VeLivePlayerErrorInternalRetryStart = -102

内部播放重试。可能由于播放器内部错误触发了重试。

VeLivePlayerErrorInternalRetryFailed

public static int VeLivePlayerErrorInternalRetryFailed = -103

内部重试失败。内部重试次数达到最大限制,播放器停止重试,您可以尝试重新播放。

VeLivePlayerErrorDnsParseFailed

public static int VeLivePlayerErrorDnsParseFailed = -200

DNS 解析失败。可能是播放地址异常或客户端网络异常,请您检查播放地址和网络情况,如果故障未排除,请联系火山引擎技术支持

VeLivePlayerErrorNetworkRequestFailed

public static int VeLivePlayerErrorNetworkRequestFailed = -201

网络请求失败。请检查网络情况,如果故障未排除,请联系火山引擎技术支持

VeLivePlayerErrorDemuxFailed

public static int VeLivePlayerErrorDemuxFailed = -300

直播格式解封装失败。可能是使用了不支持的直播流格式和协议,或音视频流错误;请检查流格式,如果故障未排除,请联系火山引擎技术支持

VeLivePlayerErrorDecodeFailed

public static int VeLivePlayerErrorDecodeFailed = -301

视频解码失败。可能使用了不支持的直播流音视频格式,或解码器出错;请检查音视频格式,如果故障未排除,请联系火山引擎技术支持

VeLivePlayerErrorAVOutputFailed

public static int VeLivePlayerErrorAVOutputFailed = -302

渲染失败。可能是音视频输出设备异常,请重试;如果故障未排除,请联系火山引擎技术支持

VeLivePlayerErrorSRDeviceUnsupported

public static int VeLivePlayerErrorSRDeviceUnsupported = -303

该台设备不支持超分能力,不在超分机型白名单内;如果有疑问,请联系火山引擎技术支持

VeLivePlayerErrorSRResolutionUnsupported

public static int VeLivePlayerErrorSRResolutionUnsupported = -304

当前分辨率高于超分开启限制的最大分辨率。如果有疑问,请联系火山引擎技术支持

VeLivePlayerErrorSRFpsUnsupported

public static int VeLivePlayerErrorSRFpsUnsupported = -305

当前帧率高于超分开启限制的最大帧率。如果有疑问,请联系火山引擎技术支持

VeLivePlayerErrorSRInitFail

public static int VeLivePlayerErrorSRInitFail = -306

超分初始化失败。可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎技术支持

VeLivePlayerErrorSRExecuteFail

public static int VeLivePlayerErrorSRExecuteFail = -307

超分执行失败,可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎技术支持

VeLivePlayerLicenseUnsupportedH265

public static int VeLivePlayerLicenseUnsupportedH265 = -308

您使用的基础版 License 暂不支持 H.265 硬件解码,请登录火山引擎视频直播控制台获取高级版 License。

VeLivePlayerErrorInternal

public static int VeLivePlayerErrorInternal = -999

内部错误。请联系火山引擎技术支持