The video download manager.
◆ com::tencent::rtmp::downloader::TXVodDownloadManager
class com::tencent::rtmp::downloader::TXVodDownloadManager |
◆ deleteDownloadFile()
boolean deleteDownloadFile |
( |
String |
playPath | ) |
|
|
inline |
Delete the file generated by download
- Parameters
-
playPath | The downloaded file path |
- Returns
false
will be returned if the file is being downloaded and cannot be deleted. @Deprecated This API has been deprecated. We recommend you use this#deleteDownloadMediaInfo(TXVodDownloadMediaInfo)
◆ deleteDownloadMediaInfo()
Delete the download information
- Parameters
-
downloadMediaInfo | downloadMediaInfo |
◆ getDownloadMediaInfo() [1/2]
Get the download information
- Parameters
-
appId | The appId of the video file |
fileId | The video file ID |
qualityId | The resolution of the stream to be downloaded. |
- Returns
◆ getDownloadMediaInfo() [2/2]
Get the download information
- Parameters
-
url | The actual download URL |
- Returns
- The download information
◆ getDownloadMediaInfoList()
Get the download list. You must set the download meta before calling this API. For more information, see the setDownloadMeta
method.
- Returns
◆ getInstance()
The video download manager
- Returns
- The video download manager instance
◆ setDownloadPath()
void setDownloadPath |
( |
String |
downloadPath | ) |
|
|
inline |
Set the root directory for downloaded files
- Parameters
-
path | The directory path. If it doesn't exist, it will be created automatically. |
- Warning
- This parameter must be configured before download starts; otherwise, download will fail.
◆ setHeaders()
void setHeaders |
( |
Map< String, String > |
headers | ) |
|
|
inline |
Set the httpHeader
- Parameters
-
◆ setListener()
Set the download callback method. Must be set before downloading
- Parameters
-
◆ startDownload()
Download a file
- Parameters
-
source | The download source |
- Returns
- The download object will be returned if the request succeeds; otherwise,
nil
will be returned.
◆ startDownloadUrl() [1/2]
◆ startDownloadUrl() [2/2]
Download a file
- Parameters
-
- Returns
- The download information
◆ stopDownload()
Stop download
- Parameters
-
media | The object for which download stopped |
◆ 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 |