LiteAVSDK
Tencent Cloud TRTC SDK, is a high availability components serving tens of thousands of enterprise customers, which is committed to helping you to minimize your research and development costs.
TXImageSprite

Data Structures

class  TXImageSprite
 

Detailed Description

The image sprite parsing tool.


Data Structure Documentation

◆ com::tencent::rtmp::TXImageSprite

class com::tencent::rtmp::TXImageSprite

Public Member Functions

 TXImageSprite (Context context)
 
void setVTTUrlAndImageUrls (String vttUrl, List< String > images)
 
Bitmap getThumbnail (float time)
 
void release ()
 

Constructor & Destructor Documentation

◆ TXImageSprite()

TXImageSprite ( Context  context)
inline

Member Function Documentation

◆ getThumbnail()

Bitmap getThumbnail ( float  time)
inline

This API is used to get a thumbnail.

Parameters
timeThe time point in seconds
Returns
If acquisition fails, null will be returned.

◆ release()

void release ( )
inline

The release API must be called after use; otherwise, memory leaks will occur.

◆ setVTTUrlAndImageUrls()

void setVTTUrlAndImageUrls ( String  vttUrl,
List< String >  images 
)
inline

This API is used to set the image sprite URL.

Parameters
vttUrlThe VTT URL
imagesThe list of images in the image sprite