Question

Can we merge two video for implementing pause/play feature in screen recording type application in cocoa.

I did't write code yet. Because first I want to be conform about it that this can be possible.

First start video recording on pressing "Play Button" than stop its session by pressing "pause Button" save its session AVCaptureSession into AVCaptureMovieFileOutput in a temporary directory.

On tapping "Resume Button" again session will be started now pressing "Stop Button" video save in temporary folder, then merge both video into single one and show it

Is it a right way of implementing pause/play functionality.If you have any other logic please share with me .

Was it helpful?

Solution

Yes, you can. Store captured samples in NSTemporaryDirectory and use AVMutableComposition to merge assets at the end of recording session.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top