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()


ヘルプとサポート

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

フィードバック