mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-19 12:28:08 +00:00
feat(ui/views/App/Calls/Conference): add vu meters
This commit is contained in:
parent
fd6ca7f2cf
commit
74e52ac631
2 changed files with 24 additions and 1 deletions
|
|
@ -131,6 +131,10 @@ function handleCountChanged (count) {
|
|||
var call = calls._selectedCall
|
||||
|
||||
if (call == null) {
|
||||
if (calls.conferenceModel.count > 0) {
|
||||
return
|
||||
}
|
||||
|
||||
var model = calls.model
|
||||
var index = count - 1
|
||||
updateSelectedCall(model.data(model.index(index, 0)), index)
|
||||
|
|
|
|||
|
|
@ -136,7 +136,10 @@ Rectangle {
|
|||
}
|
||||
|
||||
Avatar {
|
||||
readonly property int size: Math.min(parent.width, parent.height - contactDescription.height - parent.spacing)
|
||||
readonly property int size: Math.min(
|
||||
parent.width,
|
||||
parent.height - contactDescription.height - parent.spacing
|
||||
)
|
||||
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
|
|
@ -158,6 +161,22 @@ Rectangle {
|
|||
username: contactDescription.username
|
||||
}
|
||||
}
|
||||
|
||||
VuMeter {
|
||||
anchors {
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
leftMargin: ConferenceStyle.grid.spacing
|
||||
bottomMargin: ConferenceStyle.grid.spacing
|
||||
}
|
||||
|
||||
Timer {
|
||||
interval: 50
|
||||
repeat: true
|
||||
|
||||
onTriggered: parent.value = $call.speakerVu
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue