最近更新时间:2024.04.19 14:57:37
首次发布时间:2023.03.16 14:24:57
public class VeLivePlayerError
直播播放错误。
类型 | 默认值 | 名称 |
---|---|---|
int | - | mErrorCode |
String | - | mErrorMsg |
返回 | 名称 |
---|---|
VeLivePlayerError | VeLivePlayerError |
VeLivePlayerError | VeLivePlayerError |
public int mErrorCode
直播播放错误码。
public String mErrorMsg
直播播放错误信息。
public VeLivePlayerError(int errorCode)
创建一个包含错误代码的错误对象。
传入参数
参数名 | 类型 | 说明 |
---|---|---|
errorCode | int | 错误码。 |
public VeLivePlayerError( int errorCode, String errorMsg )
创建一个包含错误代码和错误消息的错误对象。
传入参数
参数名 | 类型 | 说明 |
---|---|---|
errorCode | int | 错误码。 |
errorMsg | String | 错误消息。 |
public static class VeLivePlayerErrorCode
直播播放错误码。
public static int VeLivePlayerNoError = 0
没有错误。
public static int VeLivePlayerInvalidLicense = -1
License 无效。可能 License 集成错误或 License 过期,请检查 License 集成方式和有效性。
public static int VeLivePlayerInvalidParameter = -2
调用时传入的参数不合法。请检查入参,并重新调用。
public static int VeLivePlayerErrorRefused = -3
调用被拒绝。方法调用时机不合法,请检查调用时机。
public static int VeLivePlayerErrorLibraryLoadFailed = -4
加载库文件失败。可能是 SDK 集成错误,请检查 SDK 集成方式。
public static int VeLivePlayerErrorPlayUrl = -100
播放地址不存在或无效。可能是播放地址为空、地址格式不合法或地址长度不合法,请检查播放地址。
public static int VeLivePlayerErrorNoStreamData = -101
无法获取流数据。可能是直播流不存在、直播流中断或直播已结束,请检查直播状态。
public static int VeLivePlayerErrorInternalRetryStart = -102
内部播放重试。可能由于播放器内部错误触发了重试。
public static int VeLivePlayerErrorInternalRetryFailed = -103
内部重试失败。内部重试次数达到最大限制,播放器停止重试,您可以尝试重新播放。
public static int VeLivePlayerErrorDnsParseFailed = -200
DNS 解析失败。可能是播放地址异常或客户端网络异常,请您检查播放地址和网络情况,如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerErrorNetworkRequestFailed = -201
网络请求失败。请检查网络情况,如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerErrorDemuxFailed = -300
直播格式解封装失败。可能是使用了不支持的直播流格式和协议,或音视频流错误;请检查流格式,如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerErrorDecodeFailed = -301
视频解码失败。可能使用了不支持的直播流音视频格式,或解码器出错;请检查音视频格式,如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerErrorAVOutputFailed = -302
渲染失败。可能是音视频输出设备异常,请重试;如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerErrorSRDeviceUnsupported = -303
该台设备不支持超分能力,不在超分机型白名单内;如果有疑问,请联系火山引擎技术支持。
public static int VeLivePlayerErrorSRResolutionUnsupported = -304
当前分辨率高于超分开启限制的最大分辨率。如果有疑问,请联系火山引擎技术支持。
public static int VeLivePlayerErrorSRFpsUnsupported = -305
当前帧率高于超分开启限制的最大帧率。如果有疑问,请联系火山引擎技术支持。
public static int VeLivePlayerErrorSRInitFail = -306
超分初始化失败。可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerErrorSRExecuteFail = -307
超分执行失败,可能超分参数配置错误,或版本不兼容;如果故障未排除,请联系火山引擎技术支持。
public static int VeLivePlayerLicenseUnsupportedH265 = -308
您使用的基础版 License 暂不支持 H.265 硬件解码,请登录火山引擎视频直播控制台获取高级版 License。
public static int VeLivePlayerErrorInternal = -999
内部错误。请联系火山引擎技术支持。