Data Structures | |
| class | TXVodDownloadDataSource |
| class com::tencent::rtmp::downloader::TXVodDownloadDataSource |
Public Member Functions | |
| TXVodDownloadDataSource (int appId, String fileId, int quality, String pSign, String userName) | |
| TXVodDownloadDataSource (TXPlayerAuthBuilder authBuilder, int quality) | |
| TXVodDownloadDataSource (TXPlayerAuthBuilder authBuilder, String templateName) | |
| String | getFileId () |
| String | getPSign () |
| void | setQuality (int quality) |
| void | setToken (String token) |
| TXPlayerAuthBuilder | getAuthBuilder () |
| int | getQuality () |
| String | getTemplateName () |
| String | getToken () |
| int | getAppId () |
| String | getUserName () |
| String | getOverlayKey () |
| String | getOverlayIv () |
Static Public Attributes | |
| static final int | QUALITY_OD = 0 |
| static final int | QUALITY_FLU = 1 |
| static final int | QUALITY_SD = 2 |
| static final int | QUALITY_HD = 3 |
| static final int | QUALITY_FHD = 4 |
| static final int | QUALITY_2K = 5 |
| static final int | QUALITY_4K = 6 |
| static final int | QUALITY_UNK = 1000 |
Protected Member Functions | |
| TXVodDownloadDataSource () | |
Protected Attributes | |
| int | appId = -1 |
| String | fileId = "" |
| String | pSign = "" |
| int | quality = QUALITY_UNK |
| String | userName = "default" |
| TXPlayerAuthBuilder | authBuilder |
| String | token |
| String | templateName |
| String | overlayKey = "" |
| String | overlayIv = "" |
|
inline |
Create a download source. We recommend you use the download parameter fileId of VOD v4.
| appId | The appId of the video file |
| fileId | The video file ID |
| quality | The resolution of the stream to be downloaded. The last stream returned by the Tencent Cloud service will be downloaded by default. |
| pSign | The video encryption signature, which is required for encrypted videos |
| userName | The account name, which will be default if no value is passed in. |
|
inline |
Create a download source. It is used for compatibility with the download parameter fileId of VOD v2. It will be disused soon and thus is not recommended.
| authBuilder | |
| quality | The definition @Deprecated We recommend you use TXVodDownloadDataSource(int, String, int, String, String). |
|
inline |
Create a download source. It is used for compatibility with the download parameter fileId of VOD v2. It will be disused soon and thus is not recommended.
| authBuilder | |
| templateName | The template name, which is required if a custom template is used. @Deprecated We recommend you use TXVodDownloadDataSource(int, String, int, String, String). |
|
inlineprotected |
VOD download data source
|
inline |
Return the appId
|
inline |
|
inline |
Return the file ID
|
inline |
Return the overlayIv
|
inline |
Return the overlayKey
|
inline |
Return the signature string
|
inline |
Return the quality
|
inline |
Return the template
|
inline |
Return the token
|
inline |
Return the userName
|
inline |
Set the definition
|
inline |
After this value is set, the player will automatically add voddrm.token.<Token> before the filename in the URL.
| token |
|
protected |
The appId of the file to be downloaded, which is required.
|
protected |
|
protected |
The ID of file to be downloaded, which is required.
|
protected |
|
protected |
|
protected |
The encryption signature, which is required for encrypted videos.
|
protected |
The definition ID.
|
static |
2K
|
static |
4K
|
static |
FHD.
|
static |
LD.
|
static |
HD.
|
static |
Original resolution.
|
static |
SD.
|
static |
UnKnow.
|
protected |
|
protected |
|
protected |
The account name.