Commit 74e52ac6 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(ui/views/App/Calls/Conference): add vu meters

parent fd6ca7f2
...@@ -131,6 +131,10 @@ function handleCountChanged (count) { ...@@ -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 { ...@@ -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 { ...@@ -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
}
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment