tencent cloud

DocumentaçãoVideo on Demand

TXImageSprite

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2025-05-30 14:58:22
Traduzido por IA

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.


Ajuda e Suporte

Esta página foi útil?

comentários