Many similar questions but not Exactly the same.
I currently have my code setup to play video via an AVPlayer.
What I'm wanting to do is somehow extract the audio of the streaming video and eventually merge with the Mic Input (using AVAudioMixer?). (think Karaoke app) so when the user plays the recording it will play back the audio only from the video and the recording from the mic.
I think AVAudioEngine is the way to go but i cannot for the life of me work it out.
So my question is how do i extract or record the audio from the currently playing video in AVPlayer and importantly which is streaming with an online source (youtube).
Another way to ask the question could be as follows
I have a radio application and (think tuneIn Radio) and i want to record the streaming audio.