I am using AVAssetWriter
to record a video (with audio) form iOS camera. Everything works great.
I now want to allow the user to preview the video before saving
, meaning, before calling finishWriting
on the AVAssetWriter
instance.
My original thought was to copy the current file the writer is writing to during recoding to a preview url, and then use another AVAssetWriter
to finalize that file and then play it.
However, I am not sure how to properly initialize a second AVAssetWriter
for preview purposes, so I can call finishWriting
on it at the preview url...
Anyone knows how I could implement preview functionality to allow a user to preview the currently recorded mp4
before calling finishWriting
?