Add Date and time on recorded video

后端 未结 2 974
走了就别回头了
走了就别回头了 2021-02-06 17:06

In my application there feature of recording video, I want to add time and date details on the recorded video.

Simply i can add while it running within the app but what

2条回答
  •  悲&欢浪女
    2021-02-06 17:53

    The sample you linked shows you how to get 90% of the way. The last step is to look at the docs for AVVideoCompositionCoreAnimationTool. This class allows you to add any core animation to a video. How you do this is by adding the animation to CALayer.

    If you use a CATextLayer you can animate the string property.

提交回复
热议问题