-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
请问下 ios有没有可以监听动画播放实时进度的API #5
Comments
有,onAnimationStart, onAnimationEnd,onAnimationCancel和onAnimationRepeat。请参考这里:https://pag.io/api.html#/apis/ios/Protocols/PAGViewListener.html 如果你的目的是只播放一个区间,不需要监听实时进度每帧来判断一下这么麻烦。有更简单的API,一次调用就行。PAGFile是可以任意组合修改包括调整时长的。你只需调用PAGFile.setStartTime和startDuration就可以控制播放的区间了。你也可以多个PAGFile组合到一起播放。创建一个空的PAGComposition,addLayer() 多个PAGFile到它里面,可以分别对每个PAGFile设置startTIme和duration以及matrix控制位置。然后把总的PAGComposition设置给PAGView播放即可。 |
Closed
Closed
Closed
Closed
Closed
Open
Closed
Open
ghost
mentioned this issue
Apr 1, 2024
Closed
This was referenced Aug 6, 2024
Closed
Open
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
问题描述
问题
重现
环境
libpag 版本:libpag-ios(v3.2.4.37),libpag-android(v3.2.5.1),PAGViewer(2.1.33 beta)
设备:iPhone 7(iOS 12),OnePlus 7(Android 10),iMac 5K(macOS 10.15.3)
Demo(可选)
其他(可选)
The text was updated successfully, but these errors were encountered: