tencent cloud

TXImageSprite
Last updated: 2025-05-30 14:58:22
TXImageSprite
Last updated: 2025-05-30 14:58:22

TXImageSprite Overview

On-demand sprite sheet parsing utility class.

API Overview

API
Description
Set the sprite sheet address.
Retrieve a thumbnail.

API Detail

setVTTUrl:imageUrls:

Set the sprite sheet address. After configuration, it will start a child thread to download the sprite sheet and parse it.
- (void)setVTTUrl:(NSURL *)vttUrl imageUrls:(NSArray<NSURL *> *)images;
Parameter Description
Parameter Name
Type
Description
vttUrl
NSURL
sprite sheet web vtt description file download URL.
images
NSArray<NSURL *>
sprite sheet image download URL.

getThumbnail:

Retrieve a thumbnail, return nil if retrieval fails.
- (UIImage *)getThumbnail:(GLfloat)time;
Parameter Description
Parameter Name
Type
Description
time
GLfloat
Time point, unit: seconds.
Return Value
Thumbnail, UIImage.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback