Skip to content
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

Load animation with .lottie extension from internal storage #2553

Closed
doniwinata0309 opened this issue Sep 27, 2024 · 0 comments · Fixed by #2556
Closed

Load animation with .lottie extension from internal storage #2553

doniwinata0309 opened this issue Sep 27, 2024 · 0 comments · Fixed by #2556

Comments

@doniwinata0309
Copy link

Lottie is supported and developed on nights and weekends. Issues from Lottie sponsors will be prioritized.

Describe the bug
My android app download .lottie file from our server and store it on internal storage. For example on my internal storage
/storage/emulated/0/Android/data/com.traveloka.android.staging/files/Pictures/temp/myimage.lottie

How to load this animation on LottieAnimationView?
I got this error when trying to load this using input stream:

image It seems that only .json/.zip supported. I tried using .json format and it working.

Same .lottie file also working fine if i put this under asset folder and load this from resource id.

Is this something expected currently LottieAnimationView cannot load .lottie from android internal storage or there some workaround for this?

Thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant