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

[BUG] Valid Lottie file not shown #158

Closed
twsl opened this issue Dec 31, 2022 · 8 comments
Closed

[BUG] Valid Lottie file not shown #158

twsl opened this issue Dec 31, 2022 · 8 comments
Labels

Comments

@twsl
Copy link

twsl commented Dec 31, 2022

Description

Used the following Lottie file: https://lottiefiles.com/36895-healthy-or-junk-food
Seems to be related to the usage of the base64 encoded image data. Other Lottie files work just fine.

Code

<!--  or use local file name  -->
<skia:SKLottieView
                HeightRequest="200"
                HorizontalOptions="Center"
                RepeatCount="-1"
                Source="https://assets4.lottiefiles.com/packages/lf20_tll0j4bb.json"
                WidthRequest="200" />

Expected Behavior

Shows the animation.

Actual Behavior

Does not show anything at all.

Basic Information

  • Version with issue: 2.0.0-preview.61
  • Last known good version: none
  • IDE: Visual Studio
  • Platform Target Frameworks:
    • Android: 21
  • Target Devices:
    • Device OnePlus 10 Pro
Detailed IDE/OS information (click to expand)

PASTE ANY DETAILED VERSION INFO HERE

Screenshots

Reproduction Link

@twsl twsl added the bug label Dec 31, 2022
@ricardodevbsb
Copy link

any idea how to fix this?

@thomaskaelin
Copy link

Having the same issue right now. Any workarounds for this? Or is there another alternative for integrating Lottie other than SkiaSharp?

@mattleibow
Copy link
Contributor

Duplicate of #169

@mattleibow mattleibow marked this as a duplicate of #169 Sep 1, 2023
@nathenxbrewer
Copy link

Duplicate of #169

This is not a duplicate. #169 is referencing the ability to put .png paths inside of the lottie json. OP is referencing an issue where base64 PNGs are not rendering. I am having the same issue while using base64 in my lottie file.

@mattleibow
Copy link
Contributor

I think it is a duplicate as none of the image in the json are supported - files or embedded. This is a feature that is enabled in the internal builder that is not yet exposed in SkiaSharp.

I'll add a comment in the other issue just so I can test both.

@nathenxbrewer
Copy link

I think it is a duplicate as none of the image in the json are supported - files or embedded. This is a feature that is enabled in the internal builder that is not yet exposed in SkiaSharp.

I'll add a comment in the other issue just so I can test both.

Ok, that works, thanks. So you're saying that this fix may be coming soon?

@mattleibow
Copy link
Contributor

Ah, sorry for false hope. Not sure yet. The real issue is tracked here and lots of people are asking for it: mono/SkiaSharp#2173

@mattleibow
Copy link
Contributor

This PR will get us to the happy place: mono/SkiaSharp#2630

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

No branches or pull requests

5 participants