forked from mirrors/linphone-iphone
Disable background camera for PIP
This commit is contained in:
parent
b9dadb51f4
commit
98da1d956f
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue