tencent cloud

Video on Demand

ITXVodFilePreloadListener

Download
포커스 모드
폰트 크기
마지막 업데이트 시간: 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.

도움말 및 지원

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

피드백