-
Notifications
You must be signed in to change notification settings - Fork 22
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
SkLottieView doesn't animate on some phones #153
Comments
Reproduced, on it. |
I pushed a new nuget, would need you to confirm if it solved it, contains "Fix for animators and invalidation when IsVisible is changing at runtime." For NET 9 you need version not lower than 1.3.x. - latest is 1.3.60.1 |
Awesome! Sorry I didn't get back with you to try that for you. I'll give this a try on Monday when I'm back at work. Thanks! 🎉 |
@taublast doesn't seem to have changed anything. I've upgraded to 1.2.99.1 and my animations are still frozen, even when I'm not even binding to IsVisible. They seem to unfreeze if I change IsVisible multiple times during runtime |
@taublast this is really interesting. This works: <drawn:Canvas HorizontalOptions="Center">
<drawn:SkiaLottie DefaultFrame="-1" Source="loading-equalizer.json" HeightRequest="100" WidthRequest="100" />
</drawn:Canvas> But not this: <drawn:Canvas WidthRequest="100" HeightRequest="100" HorizontalOptions="Center">
<drawn:SkiaLottie DefaultFrame="-1" Source="loading-equalizer.json" HeightRequest="100" WidthRequest="100" />
</drawn:Canvas> BUT, if I set WidthRequest/HeightRequest for Canvas anything smaller than 90, it works. |
This is more than interesting indeed. Hopefully, we will get it fixed this weekend. |
No rush now that I know this works this way. Previously, I was not having luck with having no HeightRequest or WidthRequest on Canvas so that's why I had it defined on both Canvas and SkiaLottie but seems fine now just setting those on SkiaLottie only. |
Sorry for delay, so im running this on windows net9, tried both xaml and code-behind versions, and cannot reproduce the issue from this example. What platform should I try to reproduce on? |
Yeah totally unrelated to the IsVisible issue I believe. I'm on iOS and Android. |
Still cannot reporduce this on android now, maybe its related to where your the canvas is wrapped, or how it appears, maybe you have a navigation or something? Ijust show this like this as page content and it works:
|
When using some Android phones, the SKLottieView freezes at the first frame and won't animate.
Pixel 6a, Android 14 - Frozen
Samsung S22+, Android 14 - Works fine
Galaxy Z Fold 6, Android 14 - Frozen
I've had to switch back to SkiaSharp.Extended.UI.Controls.SKLottieView
The text was updated successfully, but these errors were encountered: