mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-19 12:28:08 +00:00
25 lines
741 B
JavaScript
25 lines
741 B
JavaScript
// =============================================================================
|
|
// `SettingsVideo.qml` Logic.
|
|
// =============================================================================
|
|
|
|
.import Linphone 1.0 as Linphone
|
|
|
|
// =============================================================================
|
|
|
|
function showVideoPreview (account) {
|
|
window.attachVirtualWindow(Qt.resolvedUrl('Dialogs/SettingsVideoPreview.qml'))
|
|
}
|
|
|
|
function updateVideoPreview () {
|
|
var count = Linphone.CallsListModel.rowCount()
|
|
if (count === 0) {
|
|
showCameraPreview.enabled = true
|
|
} else if (count === 1) {
|
|
showCameraPreview.enabled = false
|
|
window.detachVirtualWindow()
|
|
}
|
|
}
|
|
|
|
function hideVideoPreview () {
|
|
window.detachVirtualWindow()
|
|
}
|