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

add TGS (telegram animated sticker) support #309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agusibrahim
Copy link

@agusibrahim agusibrahim commented Oct 21, 2023

hi, i added some stuff to support load gzip json data where is used in telegram animated sticker file (tgs). simply just load normally tgs file from asset or network

- update ios pod
@xvrh
Copy link
Owner

xvrh commented Nov 15, 2023

@agusibrahim the next version (currently v3.0.0-alpha.1) will support loading .tgs file like this:

Lottie.asset(
  'sticker.tgs',
  decoder: LottieComposition.decodeGZip,
)

This is a bit different from your PR because:

  • It uses the GZip decoder from package:archive. That way, it works on the web
  • The decoder parameter trick allows for the GZip decoder to be tree-shaked if not used.

Let me know if it works for you.

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

Successfully merging this pull request may close these issues.

None yet

2 participants