From 98da1d956f3355866ad04bf68933c2d79ca8416e Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 13 Feb 2024 17:36:51 +0100 Subject: [PATCH] Disable background camera for PIP --- Classes/Swift/ProviderDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Swift/ProviderDelegate.swift b/Classes/Swift/ProviderDelegate.swift index 76f207eb4..f50c39a3f 100644 --- a/Classes/Swift/ProviderDelegate.swift +++ b/Classes/Swift/ProviderDelegate.swift @@ -209,13 +209,13 @@ extension ProviderDelegate: CXProviderDelegate { if (UIApplication.shared.applicationState != .active) { CallManager.instance().backgroundContextCall = call CallManager.instance().backgroundContextCameraIsEnabled = call?.params?.videoEnabled == true || call?.callLog?.wasConference() == true - if #available(iOS 16.0, *) { + /*if #available(iOS 16.0, *) { if (call?.cameraEnabled == true) { call?.cameraEnabled = AVCaptureSession().isMultitaskingCameraAccessSupported } } else { call?.cameraEnabled = false // Disable camera while app is not on foreground - } + }*/ } CallManager.instance().callkitAudioSessionActivated = false CallManager.instance().lc?.configureAudioSession()