My view controller contains a preview layer, which projects the image from my camera live. When pressing and holding a button, my code is supposed to record a video, and write it to a temporary file locally. This worked well with Swift 1.2 and Xcode 6, but stopped working after I converted the code to Swift 2 when updating to Xcode 7. When I let go of the button, the captureOutput doesn´t get called, and there is no file written to the given path.
The relevent code lies here: http://stackoverflow.com/questions/34030277/avcapturefileoutputrecordingdelegate-not-writing-to-file-swift-2 (I couldn't figure out how to paste it here smoothly).
I would appreciate any help!