视频下载信息回调
interface com::tencent::rtmp::downloader::ITXVodDownloadListener |
Public 成员函数 | |
void | onDownloadStart (TXVodDownloadMediaInfo mediaInfo) |
void | onDownloadProgress (TXVodDownloadMediaInfo mediaInfo) |
void | onDownloadStop (TXVodDownloadMediaInfo mediaInfo) |
void | onDownloadFinish (TXVodDownloadMediaInfo mediaInfo) |
void | onDownloadError (TXVodDownloadMediaInfo mediaInfo, int error, String reason) |
int | hlsKeyVerify (TXVodDownloadMediaInfo mediaInfo, String url, byte[] receive) |
int hlsKeyVerify | ( | TXVodDownloadMediaInfo | mediaInfo, |
String | url, | ||
byte[] | receive | ||
) |
下载HLS,遇到加密的文件,将解密key给外部校验
mediaInfo | 下载对象 |
url | Url地址 |
receive | 服务器返回数据 |
void onDownloadError | ( | TXVodDownloadMediaInfo | mediaInfo, |
int | error, | ||
String | reason | ||
) |
下载过程中遇到错误
mediaInfo | 下载对象 |
error | 错误码请参考 TXVodDownloadManager#DOWNLOAD_AUTH_FAILED |
reason | 错误原因 |
void onDownloadFinish | ( | TXVodDownloadMediaInfo | mediaInfo | ) |
下载结束。
mediaInfo | 下载对象 |
void onDownloadProgress | ( | TXVodDownloadMediaInfo | mediaInfo | ) |
下载进度更新
mediaInfo | 下载对象 |
void onDownloadStart | ( | TXVodDownloadMediaInfo | mediaInfo | ) |
下载开始
mediaInfo | 下载对象 |
void onDownloadStop | ( | TXVodDownloadMediaInfo | mediaInfo | ) |
下载停止。调 TXVodDownloadManager.stopDownload 方法会收到此回调
mediaInfo | 下载对象 |