Reputation: 95
I'm using AVCaptureFileOutputRecordingDelegate - didFinishRecordingToOutputFileAt inside my custom camera UI, but I don't want to pass for this method because the video is been saved when it finish recording. For legacy reasons I can't save the video locally, then to take it in a static instance and delete it from local. How can I do that ?
Upvotes: 1
Views: 240
Reputation: 3488
AVFoundation
framework has only the following output for a capture session.
AVCaptureMovieFileOutput
- to record and output a movie fileAVCaptureVideoDataOutput
- process frames from video being capturesAVCaptureAudioDataOuput
- process audio data being capturesAVCaptureStillImageOutput
- to capture still image outputSince you don't want to save the recorded video to a file. The other best option would be using AVCaptureVideoDataOutput
and get each frame on a continuous recording video and create a video from image buffer. To make a note you will not have audio output in this case. Again we can add AVCaptureAudioDataOuput
and embed the audio separately on our recorded video. But this workaround will not work for higher frame rates. So best suggestion to save the video into temp folder and delete it later.
Upvotes: 1