Resumes recording to the current output file after it was previously paused using pause
.
SDK
- macOS 10.7+
Framework
- AVFoundation
Declaration
func resumeRecording()
Discussion
This method causes the receiver to resume writing captured samples to the current output file returned by output
, after recording was previously paused using pause
. This allows you to record multiple media segments that are not contiguous in time to a single file.
In macOS, if this method is called within the captureOutput:didOutputSampleBuffer:fromConnection: delegate method, the first samples written to the current file are guaranteed to be those contained in the sample buffer passed to that method.