mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-25 23:58:37 +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
|
var call = calls._selectedCall
|
||||||
|
|
||||||
if (call == null) {
|
if (call == null) {
|
||||||
|
if (calls.conferenceModel.count > 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var model = calls.model
|
var model = calls.model
|
||||||
var index = count - 1
|
var index = count - 1
|
||||||
updateSelectedCall(model.data(model.index(index, 0)), index)
|
updateSelectedCall(model.data(model.index(index, 0)), index)
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,10 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
Avatar {
|
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
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
|
|
@ -158,6 +161,22 @@ Rectangle {
|
||||||
username: contactDescription.username
|
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