So you want to record a video and play music from the user\'s library at the same time? Look no further. Below is the answer.<
Once you set the AVAudioSession just like below, it'd work well.
try? AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playAndRecord, mode: AVAudioSession.Mode.videoRecording, options: AVAudioSession.CategoryOptions.mixWithOthers)