Fix screen share calls

gst-update
Nicolas Werner 3 years ago
parent e98145daec
commit 4f44b63a49
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 5
      resources/qml/voip/PlaceCall.qml
  2. 10
      resources/qml/voip/ScreenShare.qml

@ -108,12 +108,17 @@ Popup {
text: qsTr("Screen")
icon.source: "qrc:/icons/icons/ui/screen-share.svg"
onClicked: {
if (buttonLayout.validateMic()) {
Settings.microphone = micCombo.currentText;
Settings.camera = cameraCombo.currentText;
var dialog = screenShareDialog.createObject(timelineRoot);
dialog.open();
timelineRoot.destroyOnClose(dialog);
close();
}
}
}
Button {
text: qsTr("Cancel")

@ -83,7 +83,7 @@ Popup {
id: pipCheckBox
enabled: CallManager.cameras.length > 0
checked: Settings.screenSharePiP
checked: CallManager.cameras.length > 0 && Settings.screenSharePiP
Layout.alignment: Qt.AlignRight
}
@ -125,21 +125,17 @@ Popup {
Button {
text: qsTr("Share")
icon.source: "qrc:/icons/icons/ui/screen-share.svg"
onClicked: {
if (buttonLayout.validateMic()) {
Settings.microphone = micCombo.currentText;
if (pipCheckBox.checked)
Settings.camera = cameraCombo.currentText;
onClicked: {
Settings.screenShareFrameRate = frameRateCombo.currentText;
Settings.screenSharePiP = pipCheckBox.checked;
Settings.screenShareRemoteVideo = remoteVideoCheckBox.checked;
Settings.screenShareHideCursor = hideCursorCheckBox.checked;
CallManager.sendInvite(room.roomId, CallType.SCREEN, windowCombo.currentIndex);
close();
}
}
}
Button {
text: qsTr("Preview")

Loading…
Cancel
Save