Skip to content
Snippets Groups Projects
Commit 3b97741a authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

videoview: don't close the device when a video call is present

Gitlab: #627
Change-Id: I5d892fc49b1605984481c810dcd43994258c845d
parent 538481a9
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ Item {
function stopBooth(){
if (!AccountAdapter.hasVideoCall()) {
VideoDevices.stopDevice(preview.deviceId)
VideoDevices.stopDevice(preview.deviceId)
}
isPreviewing = false
}
......
......@@ -33,7 +33,7 @@ Rectangle {
id: root
property var accountPeerPair: ["", ""]
property variant clickPos: "1,1"
property string clickPos: "1,1"
property int previewMargin: 15
property int previewMarginYTop: previewMargin + 42
property int previewMarginYBottom: previewMargin + 84
......@@ -44,14 +44,6 @@ Rectangle {
property var linkedWebview: null
property string callPreviewId: ""
onCallPreviewIdChanged: {
testLog("\n\n CHANGING CALLPREVIEWID" + root.callPreviewId + " " + previewRenderer.rendererId + " \n\n")
}
function testLog(txt) {
console.log(this, txt)
}
color: "black"
onAccountPeerPairChanged: {
......@@ -194,7 +186,7 @@ Rectangle {
rendererId: root.callPreviewId
onVisibleChanged: {
if (!visible) {
if (!visible && !AccountAdapter.hasVideoCall()) {
VideoDevices.stopDevice(rendererId, true)
}
}
......@@ -291,8 +283,8 @@ Rectangle {
function onUpdateOverlay(isPaused, isAudioOnly, isAudioMuted, isVideoMuted,
isSIP, isConferenceCall, isGrid, previewId) {
if (previewId != "") {
if (root.callPreviewId != previewId)
if (previewId !== "") {
if (root.callPreviewId !== previewId)
VideoDevices.stopDevice(root.callPreviewId, true)
VideoDevices.startDevice(previewId)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment