tencent cloud

Video on Demand

TXVodPreloadManagerDelegate

Download
Focus Mode
Font Size
Last updated: 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.


Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback