I am adding an image overlay on the video at origin(0,0).But the generated video shows overlay at the bottom left corner instead of showing it at the top left corner.
Hi, I am relatively new to IOS development and AVFoundation. I am attempting to insert a text overlay in a project I have written in Swift. The text appears on the screen but it is distorted (skewed). I was not able to find any real examples of this topic written in Swift.
Would you be able to advise. Below is the code I am using. It is an attempt of a conversion from Objective-C code.
The “showInBounds” variable is a CGSize of a view in which the AVPlayer is located.
Thank you.
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]