Skip to content

能否支持播放玩是否保留最后一帧的配置 #480

Answered by domchen
wu781521512 asked this question in General
Discussion options

You must be logged in to vote

播放一遍都是停留在最后一帧的,如果想回到第一帧设置setProgress(0)在flush就好,如果只是暂时想清空画面,对整个root Composition设置visible=false再flush会更好。直接清空Composition下次如果再设置回来,会导致内部缓存都丢失,是个比较重的操作。如果你确定后面再也不需要第二次播放这个素材,那这样操作是对的。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by domchen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants