lvgl / lvgl

Embedded graphics library to create beautiful UIs for any MCU, MPU and display type.
https://lvgl.io
MIT License
17.4k stars 3.28k forks source link

How to stop lottie animation and change the animation file to play again? #7283

Open SSEHX opened 1 week ago

SSEHX commented 1 week ago

LVGL version

v9...

What happened?

We need to play several different lottie animations according to our requirements, and we need to switch lottie json files. At present, the file system has been docked on esp32p4 platform and is running normally. How can I stop lottie animations and switch files to play again? It seems that no such api is provided.

How to reproduce?

No response

kisvegabor commented 2 days ago

Hi,

You can just call lv_lottie_set_src_data/file again with a different source.