Skip to content
Discussion options

You must be logged in to vote

感谢反馈!推荐通过 onAnimationStart 回调实现,第二次播放从 10s 开始:

private var isFirstPlay = true

- (void)onAnimationStart:(PAGView*)pagView {
    if (!isFirstPlay) {
        [pagView setProgress:10.0 / 14.0];  // 第二次开始从 10s 播放
    }
    isFirstPlay = false;
}

关于播放变慢的问题,可能是容器的 duration 没有正确设置导致出现了时间拉伸,建议检查 PAGComposition 或 PAGFile 的 duration 设置是否正确。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fushenghua
Comment options

Answer selected by kevingpqi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants