tencent cloud

Video on Demand

TXVodPreloadManagerDelegate

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-05-30 14:54:52

TXVodPreloadManagerDelegate API Introduction

Pre-download URL status callback listener API.

Callback API Overview

API
Description
Video preloading started.
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
fileId for video download. This parameter is nil when using URL caching method.
url
NSString
Pre-download task URL.
param
NSDictionary
Additional parameter.

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
NSString
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.


ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック