merge : use remote audio video conf uri if any

This commit is contained in:
Gaelle Braud 2024-05-30 15:03:15 +02:00
parent 8f48336d64
commit f45fc98c21
4 changed files with 15 additions and 6 deletions

View file

@ -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) {

View file

@ -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);
}

View file

@ -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

View file

@ -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