Reputation: 1000
I am building a messaging app that has similar functionality as Snapchat. How would I be able to add a text over video that can be positioned anywhere in the screen and also be able to export the video with the text.
Upvotes: 0
Views: 4862
Reputation: 1055
From the tags I am guessing that you are using mpmediaplayercontroller. You cannot achieve text over video using this controller. To apply text over the video you need to use avassetplayer and take the composition of the video and apply a catextlayer to the video composition..
Follow the tutorial at this link. This will definitely help you solve your problem..
Upvotes: 1