AVCaptureSession sometimes too slow to start on iOS 14

On iOS 14, when we have AVCaptureSession setup wit AVCaptureVideoDataOutput, AVCaptureAudioDataOutput and also RemoteIO unit configured, AVCaptureSession sometimes takes upto 3-4 seconds to start especially when also changing AVAudioSession category from playback to playAndRecord. Is this because iOS14 is overall slow and buggy in the initial release or something specific to AVFoundation?

the same problem with ipadOS 15 on iPad 9 and 16 beta on iPad Pro 11 3 (M1). Delay now up to 15 seconds!!

AVCaptureSession sometimes too slow to start on iOS 14
 
 
Q