mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-04 06:45:45 +02:00
fix: open correct preview when sharing
While in an audio only call, if a sharing is started, the preview could open the camera instead. Change-Id: I03d8a9df3385f856f65995a9bbaa1835949d8bdc
This commit is contained in:
parent
4127200d8d
commit
87acb931b9
2 changed files with 3 additions and 9 deletions
|
@ -37,7 +37,8 @@ VideoView {
|
||||||
}
|
}
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
const id = visible ? VideoDevices.getDefaultDevice() : ""
|
rendererId = rendererId ? rendererId : VideoDevices.getDefaultDevice()
|
||||||
|
const id = visible ? rendererId : ""
|
||||||
startWithId(id)
|
startWithId(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -199,14 +199,6 @@ Rectangle {
|
||||||
visible: false
|
visible: false
|
||||||
rendererId: ""
|
rendererId: ""
|
||||||
|
|
||||||
Connections {
|
|
||||||
target: AvAdapter
|
|
||||||
|
|
||||||
function onCurrentRenderingDeviceIdChanged() {
|
|
||||||
previewRenderer.rendererId = AvAdapter.currentRenderingDeviceId
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
height: width * invAspectRatio
|
height: width * invAspectRatio
|
||||||
width: Math.max(callPageMainRect.width / 5, JamiTheme.minimumPreviewWidth)
|
width: Math.max(callPageMainRect.width / 5, JamiTheme.minimumPreviewWidth)
|
||||||
x: callPageMainRect.width - previewRenderer.width - previewMargin
|
x: callPageMainRect.width - previewRenderer.width - previewMargin
|
||||||
|
@ -312,6 +304,7 @@ 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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue