LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
ITXVodDownloadListener

Data Structures

interface  ITXVodDownloadListener
 

Detailed Description

The callback for video download information.


Data Structure Documentation

◆ com::tencent::rtmp::downloader::ITXVodDownloadListener

interface com::tencent::rtmp::downloader::ITXVodDownloadListener

Public Member Functions

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)
 

Member Function Documentation

◆ hlsKeyVerify()

int hlsKeyVerify ( TXVodDownloadMediaInfo  mediaInfo,
String  url,
byte[]  receive 
)

Send the decryption key to the player for verification if the HLS file to be downloaded is encrypted.

Parameters
mediaInfoThe download object
urlThe URL @prarm receive The server response
Returns
0 - The decryption key is correct, and file download continues; otherwise, a download error (failed to get the decryption key) will be reported.

◆ onDownloadError()

void onDownloadError ( TXVodDownloadMediaInfo  mediaInfo,
int  error,
String  reason 
)

An error occurred during download.

Parameters
mediaInfoThe download object
errorFor more information on error codes, see TXVodDownloadManager.
reasonThe error cause

◆ onDownloadFinish()

void onDownloadFinish ( TXVodDownloadMediaInfo  mediaInfo)

Download ended.

Parameters
mediaInfoThe download object

◆ onDownloadProgress()

void onDownloadProgress ( TXVodDownloadMediaInfo  mediaInfo)

The download progress is updated.

Parameters
mediaInfoThe download object

◆ onDownloadStart()

void onDownloadStart ( TXVodDownloadMediaInfo  mediaInfo)

Download started.

Parameters
mediaInfoThe download object

◆ onDownloadStop()

void onDownloadStop ( TXVodDownloadMediaInfo  mediaInfo)

Download stopped. This callback will be received if the TXVodDownloadManager.stopDownload method is called.

Parameters
mediaInfoThe download object