tencent cloud

Video on Demand

TXImageSprite

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-05-30 15:10:20

TXImageSprite Overview

On-demand sprite sheet parsing tool class.

API Overview

API
Description
Constructor.
Set sprite sheet address.
Retrieve a thumbnail.
release
Release resources, call after usage is complete, otherwise it can lead to memory leak.

API Detail

TXImageSprite

Constructor.
public TXImageSprite(Context context)

setVTTUrlAndImageUrls

Set the sprite sheet address. After configuration, it will start a child thread to download the sprite sheet and parse it.
public void setVTTUrlAndImageUrls(String vttUrl, List<String> imagesUrl)
Parameter Description
Parameter Name
Type
Description
vttUrl
String
sprite sheet web vtt description file download URL.
imagesUrl
List<String>
sprite sheet image download URL.

getThumbnail

Retrieve a thumbnail, return null if retrieval fails.
public Bitmap getThumbnail(float time)
Parameter Description
Parameter Name
Type
Description
time
float
Time point, unit: seconds.

release

Release resources, call after usage is complete, otherwise it can lead to memory leak.
public void release()


도움말 및 지원

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

피드백