开发者

AVVideoCompositionCoreAnimationTool and custom CALayer: setNeedsDisplay each frame?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜