Record playback audio with video in AVCaptureSession

I'm currently recording the macOS screen with AVCaptureSession

I'm adding 2 inputs AVCaptureScreenInput()

AVCaptureDeviceInput(AVCaptureDevice.default(for: AVMediaType.audio))

This records the audio from my mic I instead want to record the audio from the computer

e.g if I'm recording the screen playing a yotube video I want the audio from the speakers not just the video

Hey @bhagyash have you came up with a solution for that as Im currently facing the same issue, thanks in advance

Record playback audio with video in AVCaptureSession
 
 
Q