What I have achieved so far:
Using the AVFoundation services, I posted the video on a UIView so that the user can play, pause, etc. (using AVPlayer, AVPlayerItem, AVPlayerLayer, etc.)
I placed a UIView (with transparent / transparent background color) on top of the view, which should show the video being played. I also handled UIKit touch events to draw lines based on user interaction.
Now, when I play the video and touch the UIView that overlays this view, I see the lines drawn on the playing video.
What I want to do:
After the user has completed the drawing (which, in his opinion, is superimposed on the video), I want my application to compose the original video, as well as the user interaction (lines are drawn, deleted, etc.) and export the result like another video file.
Any help or sample code would be greatly appreciated.
source share