播放器SDK常量类
变量 | |
static final int | INDEX_AUTO = -1 |
static final String | VOD_PLAY_MIMETYPE_TEXT_SRT = "text/x-subrip" |
static final String | VOD_PLAY_MIMETYPE_TEXT_VTT = "text/vtt" |
图像平铺模式 | |
static final int | RENDER_MODE_FULL_FILL_SCREEN = 0 |
static final int | RENDER_MODE_ADJUST_RESOLUTION = 1 |
图像渲染角度 | |
static final int | RENDER_ROTATION_PORTRAIT = 0 |
static final int | RENDER_ROTATION_LANDSCAPE = 270 |
播放事件参数 | |
static final String | EVT_UTC_TIME = "EVT_UTC_TIME" |
static final String | EVT_BLOCK_DURATION = "EVT_BLOCK_DURATION" |
static final String | EVT_TIME = "EVT_TIME" |
static final String | EVT_DESCRIPTION = "EVT_MSG" |
static final String | EVT_PARAM1 = "EVT_PARAM1" |
static final String | EVT_PARAM2 = "EVT_PARAM2" |
static final String | EVT_GET_MSG = "EVT_GET_MSG" |
static final String | EVT_PLAY_COVER_URL = "EVT_PLAY_COVER_URL" |
static final String | EVT_PLAY_URL = "EVT_PLAY_URL" |
static final String | EVT_PLAY_NAME = "EVT_PLAY_NAME" |
static final String | EVT_PLAY_DESCRIPTION = "EVT_PLAY_DESCRIPTION" |
static final String | EVT_PLAY_PROGRESS_MS = "EVT_PLAY_PROGRESS_MS" |
static final String | EVT_PLAY_DURATION_MS = "EVT_PLAY_DURATION_MS" |
static final String | EVT_PLAY_PROGRESS = "EVT_PLAY_PROGRESS" |
static final String | EVT_PLAY_DURATION = "EVT_PLAY_DURATION" |
static final String | EVT_PLAYABLE_DURATION_MS = "EVT_PLAYABLE_DURATION_MS" |
static final String | EVT_PLAYABLE_RATE = "EVT_PLAYABLE_RATE" |
static final String | EVT_USERID = "EVT_USERID" |
static final String | EVT_ID = "EVT_ID" |
static final String | EVT_REPORT_TOKEN = "EVT_REPORT_TOKEN" |
static final String | EVT_STREAM_TYPE = "EVT_STREAM_TYPE" |
static final String | EVT_PLAYABLE_DURATION = "EVT_PLAYABLE_DURATION" |
static final String | EVT_IMAGESPRIT_WEBVTTURL = "EVT_IMAGESPRIT_WEBVTTURL" |
static final String | EVT_IMAGESPRIT_IMAGEURL_LIST = "EVT_IMAGESPRIT_IMAGEURL_LIST" |
static final String | EVT_DRM_TYPE = "EVT_DRM_TYPE" |
static final String | EVT_CODEC_TYPE = "EVT_CODEC_TYPE" |
static final String | EVT_KEY_FRAME_CONTENT_LIST = "EVT_KEY_FRAME_CONTENT_LIST" |
static final String | EVT_KEY_FRAME_TIME_LIST = "EVT_KEY_FRAME_TIME_LIST" |
static final String | EVT_KEY_SELECT_TRACK_INDEX = "EVT_KEY_SELECT_TRACK_INDEX" |
static final String | EVT_KEY_SELECT_TRACK_ERROR_CODE = "EVT_KEY_SELECT_TRACK_ERROR_CODE" |
static final String | EVT_KEY_VIDEO_ROTATION = "EVT_KEY_VIDEO_ROTATION" |
播放网络状态通知参数 | |
static final String | NET_STATUS_CPU_USAGE = "CPU_USAGE" |
static final String | NET_STATUS_VIDEO_WIDTH = "VIDEO_WIDTH" |
static final String | NET_STATUS_VIDEO_HEIGHT = "VIDEO_HEIGHT" |
static final String | NET_STATUS_VIDEO_FPS = "VIDEO_FPS" |
static final String | NET_STATUS_VIDEO_GOP = "VIDEO_GOP" |
static final String | NET_STATUS_VIDEO_BITRATE = "VIDEO_BITRATE" |
static final String | NET_STATUS_AUDIO_BITRATE = "AUDIO_BITRATE" |
static final String | NET_STATUS_NET_SPEED = "NET_SPEED" |
static final String | NET_STATUS_AUDIO_CACHE = "AUDIO_CACHE" |
static final String | NET_STATUS_VIDEO_CACHE = "VIDEO_CACHE" |
static final String | NET_STATUS_AUDIO_INFO = "AUDIO_PLAY_INFO" |
static final String | NET_STATUS_NET_JITTER = "NET_JITTER" |
static final String | NET_STATUS_SERVER_IP = "SERVER_IP" |
static final String | NET_STATUS_VIDEO_DPS = "VIDEO_DPS" |
static final String | NET_STATUS_QUALITY_LEVEL = "NET_QUALITY_LEVEL" |
播放器媒资类型 | |
static final int | MEDIA_TYPE_AUTO = 0 |
static final int | MEDIA_TYPE_HLS_VOD = 1 |
static final int | MEDIA_TYPE_HLS_LIVE = 2 |
class com::tencent::rtmp::TXVodConstants |
静态 Public 属性 | |
static final int | INDEX_AUTO = -1 |
static final String | VOD_PLAY_MIMETYPE_TEXT_SRT = "text/x-subrip" |
static final String | VOD_PLAY_MIMETYPE_TEXT_VTT = "text/vtt" |
图像平铺模式 | |
static final int | RENDER_MODE_FULL_FILL_SCREEN = 0 |
static final int | RENDER_MODE_ADJUST_RESOLUTION = 1 |
图像渲染角度 | |
static final int | RENDER_ROTATION_PORTRAIT = 0 |
static final int | RENDER_ROTATION_LANDSCAPE = 270 |
播放事件列表 | |
static final int | VOD_PLAY_EVT_RCV_FIRST_I_FRAME = 2003 |
static final int | VOD_PLAY_EVT_PLAY_BEGIN = 2004 |
static final int | VOD_PLAY_EVT_PLAY_PROGRESS = 2005 |
static final int | VOD_PLAY_EVT_PLAY_END = 2006 |
static final int | VOD_PLAY_EVT_PLAY_LOADING = 2007 |
static final int | VOD_PLAY_EVT_START_VIDEO_DECODER = 2008 |
static final int | VOD_PLAY_EVT_CHANGE_RESOLUTION = 2009 |
static final int | VOD_PLAY_EVT_GET_PLAYINFO_SUCC = 2010 |
static final int | VOD_PLAY_EVT_CHANGE_ROTATION = 2011 |
static final int | VOD_PLAY_EVT_VOD_PLAY_PREPARED = 2013 |
static final int | VOD_PLAY_EVT_VOD_LOADING_END = 2014 |
static final int | VOD_PLAY_EVT_RCV_FIRST_AUDIO_FRAME = 2026 |
static final int | VOD_PLAY_WARNING_RECONNECT = 2103 |
static final int | VOD_PLAY_ERR_NET_DISCONNECT = -2301 |
static final int | VOD_PLAY_ERR_FILE_NOT_FOUND = -2303 |
static final int | VOD_PLAY_ERR_HEVC_DECODE_FAIL = -2304 |
static final int | VOD_PLAY_ERR_HLS_KEY = -2305 |
static final int | VOD_PLAY_ERR_GET_PLAYINFO_FAIL = -2306 |
static final int | VOD_PLAY_WARNING_HW_ACCELERATION_FAIL = 2106 |
static final int | VOD_PLAY_ERR_INVALID_LICENSE = -5 |
static final int | VOD_PLAY_EVT_TCP_CONNECT_SUCC = 2016 |
static final int | VOD_PLAY_EVT_FIRST_VIDEO_PACKET = 2017 |
static final int | VOD_PLAY_EVT_DNS_RESOLVED = 2018 |
static final int | VOD_PLAY_EVT_SEEK_COMPLETE = 2019 |
static final int | VOD_PLAY_EVT_LOOP_ONCE_COMPLETE = 6001 |
播放事件参数 | |
static final String | EVT_UTC_TIME = "EVT_UTC_TIME" |
static final String | EVT_BLOCK_DURATION = "EVT_BLOCK_DURATION" |
static final String | EVT_TIME = "EVT_TIME" |
static final String | EVT_DESCRIPTION = "EVT_MSG" |
static final String | EVT_PARAM1 = "EVT_PARAM1" |
static final String | EVT_PARAM2 = "EVT_PARAM2" |
static final String | EVT_GET_MSG = "EVT_GET_MSG" |
static final String | EVT_PLAY_COVER_URL = "EVT_PLAY_COVER_URL" |
static final String | EVT_PLAY_URL = "EVT_PLAY_URL" |
static final String | EVT_PLAY_NAME = "EVT_PLAY_NAME" |
static final String | EVT_PLAY_DESCRIPTION = "EVT_PLAY_DESCRIPTION" |
static final String | EVT_PLAY_PROGRESS_MS = "EVT_PLAY_PROGRESS_MS" |
static final String | EVT_PLAY_DURATION_MS = "EVT_PLAY_DURATION_MS" |
static final String | EVT_PLAY_PROGRESS = "EVT_PLAY_PROGRESS" |
static final String | EVT_PLAY_DURATION = "EVT_PLAY_DURATION" |
static final String | EVT_PLAYABLE_DURATION_MS = "EVT_PLAYABLE_DURATION_MS" |
static final String | EVT_PLAYABLE_RATE = "EVT_PLAYABLE_RATE" |
static final String | EVT_USERID = "EVT_USERID" |
static final String | EVT_ID = "EVT_ID" |
static final String | EVT_REPORT_TOKEN = "EVT_REPORT_TOKEN" |
static final String | EVT_STREAM_TYPE = "EVT_STREAM_TYPE" |
static final String | EVT_PLAYABLE_DURATION = "EVT_PLAYABLE_DURATION" |
static final String | EVT_IMAGESPRIT_WEBVTTURL = "EVT_IMAGESPRIT_WEBVTTURL" |
static final String | EVT_IMAGESPRIT_IMAGEURL_LIST = "EVT_IMAGESPRIT_IMAGEURL_LIST" |
static final String | EVT_DRM_TYPE = "EVT_DRM_TYPE" |
static final String | EVT_CODEC_TYPE = "EVT_CODEC_TYPE" |
static final String | EVT_KEY_FRAME_CONTENT_LIST = "EVT_KEY_FRAME_CONTENT_LIST" |
static final String | EVT_KEY_FRAME_TIME_LIST = "EVT_KEY_FRAME_TIME_LIST" |
static final String | EVT_KEY_SELECT_TRACK_INDEX = "EVT_KEY_SELECT_TRACK_INDEX" |
static final String | EVT_KEY_SELECT_TRACK_ERROR_CODE = "EVT_KEY_SELECT_TRACK_ERROR_CODE" |
static final String | EVT_KEY_VIDEO_ROTATION = "EVT_KEY_VIDEO_ROTATION" |
播放网络状态通知参数 | |
static final String | NET_STATUS_CPU_USAGE = "CPU_USAGE" |
static final String | NET_STATUS_VIDEO_WIDTH = "VIDEO_WIDTH" |
static final String | NET_STATUS_VIDEO_HEIGHT = "VIDEO_HEIGHT" |
static final String | NET_STATUS_VIDEO_FPS = "VIDEO_FPS" |
static final String | NET_STATUS_VIDEO_GOP = "VIDEO_GOP" |
static final String | NET_STATUS_VIDEO_BITRATE = "VIDEO_BITRATE" |
static final String | NET_STATUS_AUDIO_BITRATE = "AUDIO_BITRATE" |
static final String | NET_STATUS_NET_SPEED = "NET_SPEED" |
static final String | NET_STATUS_AUDIO_CACHE = "AUDIO_CACHE" |
static final String | NET_STATUS_VIDEO_CACHE = "VIDEO_CACHE" |
static final String | NET_STATUS_AUDIO_INFO = "AUDIO_PLAY_INFO" |
static final String | NET_STATUS_NET_JITTER = "NET_JITTER" |
static final String | NET_STATUS_SERVER_IP = "SERVER_IP" |
static final String | NET_STATUS_VIDEO_DPS = "VIDEO_DPS" |
static final String | NET_STATUS_QUALITY_LEVEL = "NET_QUALITY_LEVEL" |
播放器媒资类型 | |
static final int | MEDIA_TYPE_AUTO = 0 |
static final int | MEDIA_TYPE_HLS_VOD = 1 |
static final int | MEDIA_TYPE_HLS_LIVE = 2 |
|
static |
卡顿时间
|
static |
视频编码类型
|
static |
事件说明
|
static |
加密类型
|
static |
消息内容,收到PLAY_EVT_GET_MESSAGE事件时,通过该字段获取消息内容
|
static |
事件ID
|
static |
雪碧图图片下载URL
|
static |
雪碧图web vtt描述文件下载URL
|
static |
视频关键帧描述信息
|
static |
关键帧时间(秒)
|
static |
切换媒体轨道的返回错误码
|
static |
切换的媒体轨道index
|
static |
视频旋转角度
|
static |
事件参数1
|
static |
事件参数2
|
static |
视频封面
|
static |
视频简介
|
static |
播放总长
|
static |
播放总长(毫秒)
|
static |
视频名称
|
static |
播放进度
|
static |
播放进度(毫秒)
|
static |
视频地址
|
static |
点播可播放时长
|
static |
点播可播放时长(毫秒)
|
static |
播放速率
|
static |
数据上报token
|
static |
事件流类型
|
static |
事件发生时间
|
static |
|
static |
UTC时间
|
static |
自适应码率index标识
|
static |
auto类型,自适应码率播放暂不支持auto类型
|
static |
自适应码率播放hls直播媒资
|
static |
自适应码率播放hls点播媒资
|
static |
推流:音频数据发送比特率;拉流:音频数据接收比特率 单位:kbps
|
static |
推流:发送端缓存未发送的音频帧数;拉流:接收端已接收但未播放的音频帧总时长
|
static |
当前流的音频信息,包括采样率信息和声道数信息
|
static |
CPU使用率
|
static |
网络抖动情况,数值越大表示抖动越大,网络越不稳定
|
static |
推流:音视频数据发送总比特率;拉流:音视频数据接收总比特率 单位:kbps
|
static |
网络质量:0:未定义 1:最好 2:好 3:一般 4:差 5:很差 6:不可用
|
static |
连接的Server IP地址
|
static |
推流:视频数据发送比特率;拉流:视频数据接收比特率 单位:kbps
|
static |
推流:发送端缓存未发送的视频帧数;拉流:接收端已接收但未渲染的视频帧总时长
|
static |
当前解码器输出帧率(点播)
|
static |
当前视频帧率,也就是视频编码器每条生产了多少帧画面
|
static |
当前视频GOP,也就是每两个关键帧(I帧)间隔时长,单位s
|
static |
分辨率之height
|
static |
分辨率之width
|
static |
视频画面自适应屏幕:将图像等比例缩放,缩放后的宽和高都不会超过显示区域,居中显示,可能会留有黑边
|
static |
视频画面全屏铺满:将图像等比例铺满整个屏幕,多余部分裁剪掉,此模式下画面不留黑边
|
static |
右旋90度
|
static |
常规竖屏
|
static |
文件不存在
|
static |
获取点播文件信息失败
|
static |
h265解码失败
|
static |
HLS解密key获取失败
|
static |
license 不合法,播放失败
|
static |
网络断连,且经多次重连抢救无效,可以放弃治疗,更多重试请自行重启播放
|
static |
视频分辨率改变
|
static |
视频旋转信息
|
static |
点播,DNS 解析完成(SDK 内部事件,不会对外抛出)
|
static |
点播,收到首帧数据(SDK 内部事件,不会对外抛出)
|
static |
获取点播文件信息成功
|
static |
点播, 循环一轮播放结束(10.8 版本开始对外开放)
|
static |
视频播放开始
|
static |
视频播放结束
|
static |
视频播放Loading
|
static |
视频播放进度
|
static |
音频首次播放
|
static |
网络接收到首个视频数据包(IDR)
|
static |
点播,视频播放 Seek 完成(10.3 版本开始对外开放)
|
static |
解码器启动
|
static |
点播,TCP 连接成功(SDK 内部事件,不会对外抛出)
|
static |
loading结束(点播)
|
static |
视频加载完毕(点播)
|
static |
外挂字幕SRT格式
|
static |
外挂字幕VTT格式
|
static |
硬解启动失败,采用软解
|
static |
网络断连, 已启动自动重连 (自动重连连续失败超过三次会放弃)