Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放一个pag动画未结束的时候,如果同时播放另一个组件的pag动画,第一个pag动画会反复展示多次 #2562

Open
qiqinbo opened this issue Nov 3, 2024 · 1 comment
Assignees

Comments

@qiqinbo
Copy link

qiqinbo commented Nov 3, 2024

播放一个pag动画未结束的时候,如果同时播放另一个组件的pag动画,第一个pag动画会反复展示多次

【版本信息】

4.2.88

【平台信息】

Android 原生 | iOS 原生 | Web 浏览器 | 微信小程序 | Linux | Flutter | 其他

【预期的表现】

【实际的情况】

【Demo及附件】

@KingOfSu
Copy link

KingOfSu commented Dec 9, 2024

https://pag.io/apis/android/reference/org/libpag/PAGFile.html#timeStretchMode()

public int timeStretchMode ()
Indicate how to stretch the original duration to fit target duration when file's duration is changed. The default value is PAGTimeStretchMode::Repeat.

我的解决方案是:
PAGFile.setTimeStretchMode(PAGTimeStretchMode.None);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants