Recording a Video without stopping sound/music from device

You can refer to the answer of this Question

I have implemented same feature using SCRecorder Library, but can be achieve with AVCaptureSession as well.


I managed to solve the issue on my own. The line: AVAudioSessionCategoryOptions.MixWithOthers doesn't do anything. I moved it to the options: try audioSession.setCategory(AVAudioSessionCategoryPlayAndRecord, withOptions: [AVAudioSessionCategoryOptions.MixWithOthers])

It worked!