릴리스 노트
Parameter Name | Type | Value | Description |
TXVodDownloadMediaInfoStateInit | NSInteger | 0 | Download initial state. |
TXVodDownloadMediaInfoStateStart | NSInteger | 1 | Download started. |
TXVodDownloadMediaInfoStateStop | NSInteger | 2 | Download stopped. |
TXVodDownloadMediaInfoStateError | NSInteger | 3 | Download error. |
TXVodDownloadMediaInfoStateFinish | NSInteger | 4 | Download completed. |
API | Description |
Retrieve the source media asset information passed in when downloading with Tencent Cloud Video fileId. | |
Retrieve the actual download address. | |
Retrieve the download account name. | |
Get the total duration of the video, in milliseconds. | |
Retrieve the playable duration of the downloaded content, in milliseconds. | |
Retrieve the total download file size, in Bytes, valid only for the fileId download source. Note: The total size refers to the size of the original file uploaded to the Tencent Cloud VOD console. The substream sizes after adaptive dynamic streaming cannot be accessed temporarily. | |
Retrieve the downloaded file size, in Bytes, valid only for the fileId download source. | |
Total video segments | |
Number of downloaded segments | |
Retrieve the current download progress. | |
Retrieve the playback path of the currently downloaded resource, which can be transmitted to TXVodPlayer for playback. | |
Retrieve the download speed, in KByte per second. (Supported starting from version 10.9.) | |
Retrieve the download status. | |
Retrieve the preferred download resolution. | |
Judge whether the downloaded video resource is damaged. Return true if it is deleted after download or in similar cases. (Supported starting from version 11.0.) | |
Determine whether the download is complete. |
@property(nonatomic, strong) TXVodDownloadDataSource *dataSource;
@property(nonatomic, copy) NSString *url;
@property(nonatomic, copy) NSString *userName;
@property(nonatomic, assign) int duration;
@property(nonatomic, assign) int playableDuration;
@property(nonatomic, assign) long size;
@property(nonatomic, assign) long downloadSize;
@property(nonatomic, assign) int segments;
@property(nonatomic, assign) int downloadSegments;
@property(nonatomic, assign) float progress;
@property(nonatomic, copy) NSString *playPath;
@property(nonatomic, assign) int speed;
@property(nonatomic, assign) TXVodDownloadMediaInfoState downloadState;
@property(nonatomic, assign) long preferredResolution;
@property(nonatomic, assign) BOOL isResourceBroken;
- (BOOL)isDownloadFinished;
피드백