From c5879d44dbb822db3fd9526e990a27c27473efb5 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 14 Jun 2022 12:03:11 +0200 Subject: [PATCH] Remove preview camera in waitig room on outgoing call. SDK Call doesn't have the information that it is an audio or a video call. --- linphone-app/ui/modules/Linphone/Camera/CameraView.qml | 2 -- linphone-app/ui/views/App/Calls/WaitingRoom.qml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/linphone-app/ui/modules/Linphone/Camera/CameraView.qml b/linphone-app/ui/modules/Linphone/Camera/CameraView.qml index 5c0e4fb3d..0b9c89e10 100644 --- a/linphone-app/ui/modules/Linphone/Camera/CameraView.qml +++ b/linphone-app/ui/modules/Linphone/Camera/CameraView.qml @@ -107,7 +107,6 @@ Item{ color: CameraViewStyle.pauseView.backgroundColor radius: CameraViewStyle.radius visible: mainItem.isPaused - onVisibleChanged: console.log(visible) Rectangle{ anchors.centerIn: parent height: CameraViewStyle.pauseView.button.iconSize @@ -156,7 +155,6 @@ Item{ } Rectangle{ visible: mainItem.currentDevice && mainItem.currentDevice.isMuted - onVisibleChanged: console.log(visible) anchors.left: parent.left anchors.top: parent.top anchors.leftMargin: 15 diff --git a/linphone-app/ui/views/App/Calls/WaitingRoom.qml b/linphone-app/ui/views/App/Calls/WaitingRoom.qml index 2c8b83036..8b3b0c58b 100644 --- a/linphone-app/ui/views/App/Calls/WaitingRoom.qml +++ b/linphone-app/ui/views/App/Calls/WaitingRoom.qml @@ -20,7 +20,7 @@ Rectangle { color: WaitingRoomStyle.backgroundColor property ConferenceInfoModel conferenceInfoModel property CallModel callModel // Store the call for processing calling. - property bool previewLoaderEnabled: true + property bool previewLoaderEnabled: callModel ? callModel.videoEnabled : true property var _sipAddressObserver: callModel ? SipAddressesModel.getSipAddressObserver(callModel.fullPeerAddress, callModel.fullLocalAddress) : undefined signal cancel() @@ -29,7 +29,7 @@ Rectangle { mainItem.previewLoaderEnabled = false// Need it to close camera. } function open(){ - mainItem.previewLoaderEnabled = true + mainItem.previewLoaderEnabled = callModel ? callModel.videoEnabled : true } //onCallModelChanged: callModel ? contentsStack.replace(callingComponent) : contentsStack.replace(cameraComponent)