-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Play lottie example #6279
Comments
Hi, Happy that at least it's working at least from an array 🙂 Do you try it on PC or an embedded system? |
I use an embedded system to operate. ESP32-S3 using an Arduino |
Can you open the file for reading using normal file system functions? |
Lottie file loading uses stdio.h file functions. It doesn't use LVGL FS layer. Is that corret kisvegabor? I believe for loading Lottie files, the platform needs to support those stdio.h file interfaces. Here is where the lottie file gets opened: https://github.com/lvgl/lvgl/blob/master/src/libs/thorvg/tvgLottieLoader.cpp#L202 And we document it here: https://docs.lvgl.io/master/widgets/lottie.html#set-a-source
Finally, make sure the path you use is either absolute, or relative to the "working directory", whatever that means on ESP32-S3 Arduino. When deployed on-device, the hardcoded path in Does ESP32-S3 on Arduino have a filesystem that can be accessed through |
I'm currently using FATFS. I use the default fsdrv found in lvgl/src/libs/fsdrv in the lvgl lib. I can see that this file already uses f_open from ff.h, but when I try to load a lottie, it just displays a blank screen. |
Ah, okay. Currently you cannot load Lotties from files with FATFS. Lottie files are not loaded through the LVGL filesystem abstraction so they cannot leverage anything in fsdrv. Lottie files are loaded by logic in lvgl/src/libs/thorvg which directly calls stdio.h functions such as We could start discuss making Lottie load from fsdrv. |
With @becseya we were talking about adding
|
We added a detailed documentation on how to use the filesystem under ESP in #6367 (and also the @hoanglam9925 you should try migrating to ESP's FATFS instead of LVGL's while following the documentation |
If it's still not working please comment in #6367 |
LVGL version
v9.1.1
What happened?
I tried running lv_example_lottie_1, which runs lottie from a .c file, after seeing this library upgrade recently to support play lottie. I can play other Lottie files nicely by doing this.
However, lv_example_lottie_2—which runs from a source—showed a blank screen and produced no error log. Does any flag need to be enabled?
How to reproduce?
No response
The text was updated successfully, but these errors were encountered: