Skip to content

【请教】请问PAG动效中setProgress与其他任务协作的同步问题如何设计? #2469

Closed Answered by kevingpqi123
masterQian asked this question in Q&A
Discussion options

You must be logged in to vote

对于大部分播放器而言,如果需要做音画同步,常用的实现方案都是以音频为主时间轴,画面向音频看齐,画面存在一定的延时只要不是太长视觉层面察觉不到,但音频出现一点点的时间偏差就能够听出来。
如果想设计得更好,画面渲染一般较为耗时,是需要异步渲染的,当音频播放到一定时刻后,直接去上屏,这时使用的不是 PAGView 的接口而是 PAGSurface、PAGPlayer 的相关接口。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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