Skip to content
Snippets Groups Projects
Commit 3f33fb19 authored by Aline Gondim Santos's avatar Aline Gondim Santos
Browse files

fix: close camera when call ends

Change-Id: I81beded4eed352c90e49ad1060efa8d7ac4e83d2
parent 3455a131
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,10 @@ Rectangle { ...@@ -46,6 +46,10 @@ Rectangle {
property var linkedWebview: null property var linkedWebview: null
property string callPreviewId: "" property string callPreviewId: ""
onCallPreviewIdChanged: {
controlPreview.start()
}
color: "black" color: "black"
onAccountPeerPairChanged: { onAccountPeerPairChanged: {
...@@ -318,7 +322,6 @@ Rectangle { ...@@ -318,7 +322,6 @@ Rectangle {
isGrid) isGrid)
callOverlay.isVideoMuted = !AvAdapter.isCapturing() callOverlay.isVideoMuted = !AvAdapter.isCapturing()
callOverlay.sharingActive = AvAdapter.isSharing() callOverlay.sharingActive = AvAdapter.isSharing()
previewRenderer.rendererId = previewId
previewRenderer.visible = (AvAdapter.isSharing() || AvAdapter.isCapturing()) && participantsLayer.count == 0 previewRenderer.visible = (AvAdapter.isSharing() || AvAdapter.isCapturing()) && participantsLayer.count == 0
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment