svga / SVGAPlayer-Web

Similar to Lottie. Render After Effects / Animate CC (Flash) animations natively on Android and iOS, Web. 使用 SVGAPlayer 在 Android、iOS、Web中播放 After Effects / Animate CC (Flash) 动画。
https://svga.io
Apache License 2.0
954 stars 239 forks source link

onfinish回调方法在页面没有激活的状态下,没有回调成功 #147

Closed superOnes closed 3 years ago

superOnes commented 3 years ago

Attention

Issue Template

Issue Description(What's your problem)

How To Reappear(How to reappear the issue)

Any Attachment(Provide a sample about your issue)

------ 中文分割线 ------

注意

Issue 模板

请尽量使用英文提交 Issue

请确切回答:问题的描述、重现方式、附件(提供一个 Demo 以重现问题)

Naeemo commented 3 years ago

确实有这个问题,用定时器临时解决了。可以试一下 noExecutionDelay

superOnes commented 3 years ago

noExecutionDelay不是lite版的吗,web版的也有这个方法吗

Naeemo commented 3 years ago

啊!对不起,我搞错了……

superOnes commented 3 years ago

所以这个有办法解决吗

lijialiang commented 3 years ago

Web 版本暂不支持,需要考虑 WebWorker 兼容性问题,暂无可靠方式进行回调。

如果仅考虑兼容主流浏览器,建议使用 lite 版本。