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.
TXVodDownloadMediaInfo

Data Structures

class  TXVodDownloadMediaInfo
 

Detailed Description

The information of the downloaded video media.


Data Structure Documentation

◆ com::tencent::rtmp::downloader::TXVodDownloadMediaInfo

class com::tencent::rtmp::downloader::TXVodDownloadMediaInfo

Public Member Functions

TXVodDownloadDataSource getDataSource ()
 
int getDuration ()
 
int getPlayableDuration ()
 
int getSize ()
 
int getDownloadSize ()
 
float getProgress ()
 
String getPlayPath ()
 
int getTaskId ()
 
String getUrl ()
 
String getUserName ()
 
int getDownloadState ()
 
boolean isDownloadFinished ()
 
long getPreferredResolution ()
 
TXPlayerDrmBuilder getDrmBuilder ()
 
int getSpeed ()
 

Static Public Attributes

static final int STATE_INIT = 0
 
static final int STATE_START = 1
 
static final int STATE_STOP = 2
 
static final int STATE_ERROR = 3
 
static final int STATE_FINISH = 4
 

Protected Attributes

TXVodDownloadDataSourceEx dataSource
 
String userName = "default"
 
int duration
 
int playableDuration
 
int size
 
int downloadSize
 
float progress
 
int segments
 
int downloadSegments
 
String playPath
 
String url
 
int tid = -1
 
int downloadState = STATE_INIT
 
TXCVodPlayerNetApi netApi
 

Member Function Documentation

◆ getDataSource()

TXVodDownloadDataSource getDataSource ( )
inline

The download object specified by fileid

Returns

◆ getDownloadSize()

int getDownloadSize ( )
inline

The size of the downloaded part

Returns

◆ getDownloadState()

int getDownloadState ( )
inline

Get the download status

◆ getDrmBuilder()

TXPlayerDrmBuilder getDrmBuilder ( )
inline

The DRM information

Returns

◆ getDuration()

int getDuration ( )
inline

The total duration

Returns

◆ getPlayableDuration()

int getPlayableDuration ( )
inline

The playable duration of the downloaded video

Returns

◆ getPlayPath()

String getPlayPath ( )
inline

The playback path, which can be passed in to TXVodPlayer for playback.

Returns

◆ getPreferredResolution()

long getPreferredResolution ( )
inline

The most preferred bitstream

Returns

◆ getProgress()

float getProgress ( )
inline

The download progress

Returns

◆ getSize()

int getSize ( )
inline

The total file size, which takes effect only for download sources specified by fileid.

Returns

◆ getSpeed()

int getSpeed ( )
inline

The download speed, unit: KByte/second

Returns

◆ getTaskId()

int getTaskId ( )
inline

The task ID, which uniquely identifies the download task.

Returns

◆ getUrl()

String getUrl ( )
inline

The actual download URL

Returns

◆ getUserName()

String getUserName ( )
inline

Get the account name for download

Returns

◆ isDownloadFinished()

boolean isDownloadFinished ( )
inline

Whether download is completed

Returns

Field Documentation

◆ dataSource

TXVodDownloadDataSourceEx dataSource
protected

◆ downloadSegments

int downloadSegments
protected

The number of downloaded segments.

◆ downloadSize

int downloadSize
protected

The size of the downloaded part in bytes.

◆ downloadState

int downloadState = STATE_INIT
protected

The download status.

◆ duration

int duration
protected

The total video duration.

◆ netApi

TXCVodPlayerNetApi netApi
protected

◆ playableDuration

int playableDuration
protected

The playable duration of the downloaded video.

◆ playPath

String playPath
protected

The playback path, which can be passed in to TXVodPlayer for playback.

◆ progress

float progress
protected

The progress.

◆ segments

int segments
protected

The number of segments.

◆ size

int size
protected

The total file size in bytes.

◆ STATE_ERROR

final int STATE_ERROR = 3
static

Download error.

◆ STATE_FINISH

final int STATE_FINISH = 4
static

Download completed.

◆ STATE_INIT

final int STATE_INIT = 0
static

Initial download status.

◆ STATE_START

final int STATE_START = 1
static

Download started.

◆ STATE_STOP

final int STATE_STOP = 2
static

Download stopped.

◆ tid

int tid = -1
protected

The download task ID.

◆ url

String url
protected

The download URL.

◆ userName

String userName = "default"
protected

The account name, which is used to set the account name for download through URL.