Play video and simultaneously record audio

Hello Forum,


I have a video playing in VLC Player using MobileVLCKit 2.2.2. Simultaneously I wish to record audio for which currently Im using AudioToolbox framework
. Once the video starts playing, AudioComponentInstance stops filling my AudioBuffer. Can anybody guide what is correct way to achieve this task?

Update:

I could achieve this task of simultaneous audio recording and video playing using NSOperationQueues. While Im recording audio, video has no sound.

Play video and simultaneously record audio
 
 
Q