tencent cloud

Video on Demand

TXVodPreloadManagerDelegate

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

TXVodPreloadManagerDelegate API Introduction

Tencent Cloud Video fileId and URL preload status callback listening API.

Callback API Overview

API
Description
Video preloading started.
For fileId preloading, callback before starting preloading upon link replacement success.
Video preloading completed.
Video preloading error.

Callback API Detail

onStart:fileId:url:param:

Preloading completed with successful callback.
- (void)onStart:(int)taskID fileId:(NSString *)fileId url:(NSString *)url param:(NSDictionary *)param;
Parameter Description
Parameter Name
Type
Description
taskID
int
Pre-download task ID.
fileId
NSString
Pre-downloaded video fileId.
url
NSString
Pre-download task URL, which is the video URL after link replacement, can be used for subsequent playback.
param
NSDictionary
Additional information carried by pre-download.

onComplete:url:

Preloading completed with successful callback.
- (void)onComplete:(int)taskID url:(NSString *)url;
Parameter Description
Parameter Name
Type
Description
taskID
int
Pre-download task ID.
url
String
Pre-download task URL.

onError:url:error:

Pre-download failure callback.
- (void)onError:(int)taskID url:(NSString *)url error:(NSError *)error;
Parameter Description
Parameter Name
Type
Description
taskID
int
Pre-download task ID.
url
NSString
Pre-download task URL.
error
NSError
Error message.


도움말 및 지원

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

피드백