tencent cloud

Video on Demand

TXVodDownloadDataSource

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-05-30 14:55:04

TXVodDownloadDataSource Overview

Download a video-on-demand resource object.

Clarity TXVodQuality

Parameter Name
Type
Value
Description
TXVodQualityOD
NSInteger
0
Original video quality.
TXVodQualityFLU
NSInteger
1
Smooth.
TXVodQualitySD
NSInteger
2
Standard definition.
TXVodQualityHD
NSInteger
3
High-definition.
TXVodQualityFHD
NSInteger
4
Full HD.
TXVodQuality2K
NSInteger
5
2K.
TXVodQuality4K
NSInteger
6
4K.
TXVodQuality240P
NSInteger
240
Smooth 240P.
TXVodQuality360P
NSInteger
360
Smooth 360P.
TXVodQuality480P
NSInteger
480
Standard Definition 480P.
TXVodQuality540P
NSInteger
540
Standard Definition 540P.
TXVodQuality720P
NSInteger
720
HD 720P.
TXVodQuality1080p
NSInteger
1080
Full HD 1080P.

API Detail

auth

on-demand fileID authentication information.
@property(nonatomic, strong) TXPlayerAuthParams *auth;
Parameter Description
Parameter Name
Type
Description
auth
TXPlayerAuthParams
fileid information. For details, refer to TXPlayerAuthParams.

quality

Download clarity. Defaults to high-definition (when retrieving download information, this parameter must be consistent with the parameters used when downloading video).
@property(nonatomic, assign) TXVodQuality quality;
Parameter Description
Parameter Name
Type
Description
quality
TXVodQuality
Video quality ID. Refer to TXVodQuality enumeration.

token

Set this value, and the player will automatically add voddrm.token.<Token> before the file name in the URL.
@property(nonatomic, copy) NSString *token;

templateName

Clarity template. If the backend transcoding uses a custom template, enter the template name here. When templateName and quality are set simultaneously, templateName takes precedence.
@property(nonatomic, copy) NSString *templateName;

fileId

Video file ID.
@property(nonatomic, copy) NSString *fileId;

pSign

Signature information.
@property(nonatomic, copy) NSString *pSign;

appId

Application ID.
@property(nonatomic, assign) int appId;

userName

Account name, default "default".
@property(nonatomic, copy) NSString *userName;

overlayKey

HLS EXT-X-KEY encryption key.
@property(nonatomic, copy) NSString *overlayKey;

overlayIv

HLS EXT-X-KEY encryption Iv.
@property(nonatomic, copy) NSString *overlayKey;




도움말 및 지원

문제 해결에 도움이 되었나요?

피드백