mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
merge : use remote audio video conf uri if any
This commit is contained in:
parent
8f48336d64
commit
f45fc98c21
4 changed files with 15 additions and 6 deletions
|
|
@ -243,9 +243,11 @@ void CallCore::setSelf(QSharedPointer<CallCore> me) {
|
|||
setRemoteSas(remoteToken);
|
||||
}
|
||||
setEncryption(encryption);
|
||||
setIsSecured((encryption == LinphoneEnums::MediaEncryption::Zrtp && tokenVerified) ||
|
||||
encryption == LinphoneEnums::MediaEncryption::Srtp ||
|
||||
encryption == LinphoneEnums::MediaEncryption::Dtls);
|
||||
setIsSecured((encryption == LinphoneEnums::MediaEncryption::Zrtp &&
|
||||
tokenVerified)); // ||
|
||||
// encryption == LinphoneEnums::MediaEncryption::Srtp ||
|
||||
// encryption == LinphoneEnums::MediaEncryption::Dtls);
|
||||
// TODO : change this when api available in sdk
|
||||
});
|
||||
});
|
||||
mCallModelConnection->makeConnectToCore(&CallCore::lSetSpeakerVolumeGain, [this](float gain) {
|
||||
|
|
|
|||
|
|
@ -98,8 +98,15 @@ void CallList::setSelf(QSharedPointer<CallList> me) {
|
|||
if (currentCall) enablingVideo = currentCall->getCurrentParams()->videoEnabled();
|
||||
if (!conference) {
|
||||
auto parameters = core->createConferenceParams(conference);
|
||||
auto audioVideoConfFactoryUri =
|
||||
core->getDefaultAccount()->getParams()->getAudioVideoConferenceFactoryAddress();
|
||||
if (audioVideoConfFactoryUri) {
|
||||
parameters->setConferenceFactoryAddress(audioVideoConfFactoryUri);
|
||||
parameters->setSubject("Meeting");
|
||||
} else {
|
||||
parameters->setSubject("Local meeting");
|
||||
}
|
||||
parameters->enableVideo(enablingVideo);
|
||||
parameters->setSubject("Meeting");
|
||||
conference = core->createConferenceWithParams(parameters);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ RightPanelLayout {
|
|||
Layout.bottomMargin: 100 * DefaultStyle.dp
|
||||
Layout.preferredWidth: 165 * DefaultStyle.dp
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
enabled: mainItem.contact && mainItem.contact.core.givenName.length > 0
|
||||
enabled: mainItem.contact && mainItem.contact.core.givenName.length > 0 && mainItem.contact.core.allAddresses.length > 0
|
||||
text: mainItem.saveButtonText
|
||||
leftPadding: 20 * DefaultStyle.dp
|
||||
rightPadding: 20 * DefaultStyle.dp
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ ColumnLayout {
|
|||
Layout.preferredHeight: childrenRect.height
|
||||
Button {
|
||||
visible: mainItem.isConference
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
text: qsTr("Rejoindre la réunion")
|
||||
color: DefaultStyle.main2_200
|
||||
pressedColor: DefaultStyle.main2_400
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue