mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Fix active speaker where preview could be seen (because of binding loop on participant count)
This commit is contained in:
parent
edf2c3c71e
commit
16c1ff35bb
2 changed files with 7 additions and 4 deletions
|
|
@ -55,8 +55,8 @@ Rectangle {
|
|||
interval: 100
|
||||
onTriggered: updateMessageBanner()
|
||||
}
|
||||
onParticipantCountChanged: delayMessageBanner.restart()
|
||||
onIsReadyChanged: delayMessageBanner.restart()
|
||||
onParticipantCountChanged: Qt.callLater(function (){delayMessageBanner.restart()})
|
||||
onIsReadyChanged: Qt.callLater(function (){delayMessageBanner.restart()})
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
color: IncallStyle.backgroundColor
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ Item {
|
|||
|
||||
property int participantCount: callModel.isConference ? allDevices.count + 1 : 2 // +me. allDevices==0 if !conference
|
||||
|
||||
onParticipantCountChanged: {console.log("Conf count: " +participantCount);allDevices.updateCurrentDevice()}
|
||||
onParticipantCountChanged: {console.log("Conf count: " +participantCount); Qt.callLater(allDevices.updateCurrentDevice)}
|
||||
|
||||
property ParticipantDeviceProxyModel participantDevices : ParticipantDeviceProxyModel {
|
||||
id: allDevices
|
||||
|
|
@ -81,7 +81,10 @@ Item {
|
|||
onDeactivateCameraChanged: console.log("deactivateCamera? "+deactivateCamera)
|
||||
isPreview: !preview.visible && mainItem.participantCount == 1
|
||||
onIsPreviewChanged: {
|
||||
console.log("ispreview ? " +isPreview)
|
||||
console.log("ispreview ? " +isPreview + "visible?"+preview.visible +", pCount="+mainItem.participantCount
|
||||
+" / ready?" +mainItem.isConferenceReady
|
||||
+" / allCount=" +allDevices.count
|
||||
)
|
||||
if( isPreview){
|
||||
currentDevice = allDevices.me
|
||||
cameraView.resetCamera()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue