视频下载。视频下载支持用户在有网络的条件下下载视频,随后在无网络的环境下观看。
同时播放器 SDK 提供本地加密能力,下载后的本地视频仍为加密状态,仅可通过指定播放器对视频进行解密播放,可有效防止下载后视频的非法传播,保护视频安全。
◆ com::tencent::rtmp::downloader::TXVodDownloadManager
class com::tencent::rtmp::downloader::TXVodDownloadManager |
◆ deleteDownloadFile()
boolean deleteDownloadFile |
( |
String |
playPath | ) |
|
|
inline |
◆ deleteDownloadMediaInfo()
◆ getDownloadMediaInfo() [1/2]
◆ getDownloadMediaInfo() [2/2]
◆ getDownloadMediaInfoList()
◆ getInstance()
◆ setDownloadPath()
void setDownloadPath |
( |
String |
downloadPath | ) |
|
|
inline |
◆ setHeaders()
void setHeaders |
( |
Map< String, String > |
headers | ) |
|
|
inline |
◆ setListener()
◆ startDownload()
◆ startDownloadUrl() [1/2]
◆ startDownloadUrl() [2/2]
以url方式开始下载
- 参数
-
url | 下载地址,必选参数,否则下载失败 |
userName | 账户名称, 可选参数,不传默认为"default" |
- 返回
◆ stopDownload()
停止下载。ITXVodDownloadListener.onDownloadStop回调时停止成功
- 参数
-
◆ DOWNLOAD_403FORBIDDEN
final int DOWNLOAD_403FORBIDDEN = -5008 |
|
static |
◆ DOWNLOAD_AUTH_FAILED
final int DOWNLOAD_AUTH_FAILED = -5001 |
|
static |
◆ DOWNLOAD_DISCONNECT
final int DOWNLOAD_DISCONNECT = -5005 |
|
static |
◆ DOWNLOAD_FORMAT_ERROR
final int DOWNLOAD_FORMAT_ERROR = -5004 |
|
static |
◆ DOWNLOAD_HLS_KEY_ERROR
final int DOWNLOAD_HLS_KEY_ERROR = -5006 |
|
static |
◆ DOWNLOAD_NO_FILE
final int DOWNLOAD_NO_FILE = -5003 |
|
static |
◆ DOWNLOAD_PATH_ERROR
final int DOWNLOAD_PATH_ERROR = -5007 |
|
static |
◆ DOWNLOAD_SUCCESS
final int DOWNLOAD_SUCCESS = 0 |
|
static |