开发者

AVVideoCompositionCoreAnimationTool and custom CALayer: setNeedsDisplay each frame?

开发者 https://www.devze.com 2023-03-29 06:39 出处:网络
I\'m using the AVVideoCompositionCoreAnimationTool with a AVAssetExportSession to draw overlays into a video on iPhone.

I'm using the AVVideoCompositionCoreAnimationTool with a AVAssetExportSession to draw overlays into a video on iPhone.

particularly i'm looking to draw something really similar to Timecode into the video. I can do this witha custom CALayer (or layer delegate, either way). I have this working with one issue,

The problem is I can't see a way of calling setNeedsDisplay each frame on my custom CALayer so that I can change the type every frame through the dra开发者_Python百科wInContext call.

Is there someway to ensure that drawInContext is called before rendering each frame of the video during export?

Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消