You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I attempted to use reflection to invoke the private Start and Stop methods in Lottie.cs. While this approach works in certain scenarios, some specific Lottie files exhibit issues where the animation continues to play indefinitely, even after invoking Stop. It seems that these problematic files also render the RepeatCount property ineffective, as the property value does not appear to influence the playback behavior.
privatevoidChangeLottieStatus(boolanimating){varlottie=LottieLoading;vartype=lottie.GetType();varmethodName=animating?"Start":"Stop";varmethodInfo=type.GetMethod(methodName,BindingFlags.NonPublic|BindingFlags.Instance);if(methodInfo!=null){methodInfo.Invoke(lottie,null);}else{Console.WriteLine($"Method '{methodName}' Not Found.");}}
Thanks!
The text was updated successfully, but these errors were encountered:
I attempted to use reflection to invoke the private
Start
andStop
methods inLottie.cs
. While this approach works in certain scenarios, some specific Lottie files exhibit issues where the animation continues to play indefinitely, even after invokingStop
. It seems that these problematic files also render theRepeatCount
property ineffective, as the property value does not appear to influence the playback behavior.Thanks!
The text was updated successfully, but these errors were encountered: