The information of the downloaded video media.
◆ com::tencent::rtmp::downloader::TXVodDownloadMediaInfo
class com::tencent::rtmp::downloader::TXVodDownloadMediaInfo |
◆ getDataSource()
The download object specified by fileid
- Returns
◆ getDownloadSize()
The size of the downloaded part
- Returns
◆ getDownloadState()
◆ getDrmBuilder()
The DRM information
- Returns
◆ getDuration()
The total duration
- Returns
◆ getPlayableDuration()
int getPlayableDuration |
( |
| ) |
|
|
inline |
The playable duration of the downloaded video
- Returns
◆ getPlayPath()
The playback path, which can be passed in to TXVodPlayer
for playback.
- Returns
◆ getPreferredResolution()
long getPreferredResolution |
( |
| ) |
|
|
inline |
The most preferred bitstream
- Returns
◆ getProgress()
The download progress
- Returns
◆ getSize()
The total file size, which takes effect only for download sources specified by fileid
.
- Returns
◆ getSpeed()
The download speed, unit: KByte/second
- Returns
◆ getTaskId()
The task ID, which uniquely identifies the download task.
- Returns
◆ getUrl()
The actual download URL
- Returns
◆ getUserName()
Get the account name for download
- Returns
◆ isDownloadFinished()
boolean isDownloadFinished |
( |
| ) |
|
|
inline |
Whether download is completed
- Returns
◆ dataSource
TXVodDownloadDataSourceEx dataSource |
|
protected |
◆ downloadSegments
The number of downloaded segments.
◆ downloadSize
The size of the downloaded part in bytes.
◆ downloadState
◆ duration
The total video duration.
◆ netApi
TXCVodPlayerNetApi netApi |
|
protected |
◆ playableDuration
The playable duration of the downloaded video.
◆ playPath
The playback path, which can be passed in to TXVodPlayer
for playback.
◆ progress
◆ segments
◆ size
The total file size in bytes.
◆ STATE_ERROR
final int STATE_ERROR = 3 |
|
static |
◆ STATE_FINISH
final int STATE_FINISH = 4 |
|
static |
◆ STATE_INIT
◆ STATE_START
final int STATE_START = 1 |
|
static |
◆ STATE_STOP
◆ tid
◆ url
◆ userName
String userName = "default" |
|
protected |
The account name, which is used to set the account name for download through URL.