Image/Text overlay in video swift

前端 未结 5 2039
野趣味
野趣味 2021-01-30 15:09

I am work with image overlay for watermark effect in video using swift.I am using AVFoundation for this but somehow I am not succeed.

Following is my code

5条回答
  •  无人及你
    2021-01-30 15:44

    For me (what I see in your code), your are not adding the parentlayer to the screen.

    You create a CALayer() to add videolayer, imglayer and titleLayer into a new layer but you don't add this last one on the screen.

    yourView.layer.addSublayer(parentlayer)
    

    Hope this help you

提交回复
热议问题