Skip to content

Commit 6e6daf4

Browse files
committed
Bring back audio in recordings longer than 10 seconds
Just another Apple bug Fixes wulkano/Kap#124
1 parent 990411f commit 6e6daf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

swift/aperture/Recorder.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ class Recorder: NSObject, AVCaptureFileOutputRecordingDelegate {
4444

4545
self.output = AVCaptureMovieFileOutput();
4646

47+
// Needed because otherwise there is no audio on videos longer than 10 seconds
48+
// http://stackoverflow.com/a/26769529/64949
49+
self.output?.movieFragmentInterval = kCMTimeInvalid
50+
4751
if ((self.session?.canAddOutput(self.output)) != nil) {
4852
self.session?.addOutput(self.output);
4953
} else {

0 commit comments

Comments
 (0)