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

小程序组件加载动画报错 #117

Closed hsp996 closed 3 years ago

hsp996 commented 4 years ago
 let parser = new SVGA.Parser()
  let player = new SVGA.Player(wx.createSelectorQuery().in(this).select("#myCanvas"))
  setTimeout(() => {
    parser.load("https://cdn.jsdelivr.net/gh/svga/SVGA-Samples@master/angel.svga", function (videoItem) {
      player.setVideoItem(videoItem);
      player.startAnimation();
    })
  }, 1000)

Cannot read property 'requestAnimationFrame' of undefined

mencomao commented 4 years ago

这个错误还存在

lz-web commented 3 years ago

大佬可以解决下小程序加载报 Cannot read property 'requestAnimationFrame' of undefined 的错误吗

demaxiya1982 commented 3 years ago

这个错误需要微信解决 估计 这个是没有开放的html API

PonyCui commented 3 years ago

https://github.com/svga/SVGAPlayer-Web/issues/97