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.

This commit is contained in:
Julien Wadel 2022-06-14 12:03:11 +02:00
parent efcf2c3f22
commit c5879d44db
2 changed files with 2 additions and 4 deletions

View file

@ -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

View file

@ -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)