I am developing a music application in which music notation is displayed through m4v video files played using AVPLayer, and AVCaptureSession is used to preview and record both the video and the sound of the artist playing along with the score.
Unfortunately, although AVCaptureVideoPreviewLayer displays live video while music notation is displayed, when I try to add an audio input to AVCaptureSession, then AVPlayer pauses.
I tried using a separate AVCaptureSession for the preview and audio layer, but that doesn't seem to be much different.
I'm trying to do the impossible, or is there a way to play video / audio and record video / audio at the same time.
As far as I can see, Skype and Facetime do similar (though not quite the same) things.
source share