Comments (1)
有,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播放即可。
from libpag.
Related Issues (20)
- Safari 播放 pag 无任何反应(无报错)
- iOS闪退反馈 HOT 2
- 4.2版本线上偶现ANR问题 HOT 2
- windows系统 使用BMP合成导出 会失败 HOT 1
- 4.3.33 iOS 使用静态库集成后,编译报错。 HOT 1
- android crash HOT 1
- 相同版本号下的PAGViewer导出工具在MAC下可以导出,windows系统会报很多错误或者导出失败 HOT 1
- PAGAnimator.play() The scale of animator duration is turned off! HOT 1
- Crash in `tgfx::ResourceCache::detachFromCurrentThread()` HOT 4
- Android 在同效果对比Lottie 动画帧卡顿
- Android跑monkey出现的crash
- Android realme 真我GT NEO3 机型Pag动画无法执行 HOT 1
- pag资源出现黑底 HOT 3
- 二次开发屏幕闪烁 HOT 1
- 关于pagVIew使用进度回调问题 HOT 2
- 小程序android端,无法导出最新的图片
- iOS crash
- iOS crash pag::AnimatableProperty<std::__1::shared_ptr<pag::PathData>
- pag::PAGVideoDecoder::SetMaxHardwareDecoderCount(int) HOT 1
- Cef 里使用websdk报错:wasm streaming compile failed,非替换图及背景色变成黑的(丢失?)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpag.