我的页面上有一个AnimatedVisualPlayer,用于播放Lottie:
<winui:AnimatedVisualPlayer
x:Name="player"
AutoPlay="true" Width="150" Height ="150" PlaybackRate="1.5">
<lottie:LottieVisualSource
UriSource="ms-appx:///Lottie/waiter.json" />
</winui:AnimatedVisualPlayer>
我安装了这些软件包:
我也这样做了:
在WASM,iOS和macOS上,您可以将Lottie .json文件直接放在共享项目的文件夹中(例如“ Lottie / myanimation.json”),并将其Build操作设置为Content。
UWP可以无缝玩乐透游戏:
但是,WASM无法玩Lottie并出现以下错误:
Nuget软件包版本:
Nuget软件包:
套件版本:
How can I fix this ? Thanks.
This is a bug in the Lottie add-in for Uno-Wasm, caused by the fact you were using the PlaybackRate
and you're running in a non-english context with a culture where the decimal are serialized using a comma and not a dot.
This PR #3257 should fix the problem.
UPDATE: This PR has been merged and the fix will be available in Uno v3.0.0-dev.135
.
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句