tencent cloud

ITXVodFilePreloadListener
Last updated: 2025-05-30 15:08:18
ITXVodFilePreloadListener
Last updated: 2025-05-30 15:08:18

Introducing the ITXVodFilePreloadListener API

Tencent Cloud Video fileId and URL preload status callback listener API

Callback API Overview

API
Description
onStart
Video preloading started.
For fileId preloading, callback before starting preloading after link replacement succeeds.
Video preloading completed.
onError
Video preloading error.

Callback API Details

onStart

Preloading completed with successful callback.
public void onStart(int taskID, String fileId, String url, Bundle bundle)
Parameter Description
Parameter Name
Type
Description
taskID
int
Pre-download task ID.
fileId
int
Pre-downloaded video fileId.
url
String
Pre-download task URL, which is the video URL after link replacement, can be used for subsequent playback.
bundle
Bundle
Additional information carried by preloading.

onComplete

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

onError

Pre-download failure callback.
void onError(int taskID, String url, int code, String msg)
Parameter Description
Parameter Name
Type
Description
taskID
int
Pre-download task ID.
url
String
Pre-download task URL.
code
int
Error code.
msg
String
Error information.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback