avvideocomposition

Swift 3: How to add watermark on video ? AVVideoCompositionCoreAnimationTool iOS 10 issue

旧街凉风 提交于 2019-11-27 02:19:59
问题 This code used to work on iOS9 to add a watermark and text to a video but since iOS10 it's not working anymore. There is a iOS 10 bug that has been filed but no answer from Apple. I have not been able to implement any workaround to add watermark and text on video. With this code some times the video will be exported successfully but most of time it won't be exported. How should I use AVVideoCompositionCoreAnimationTool so that it works as it did on iOS9. let videoComposition: