mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
In window calls, update behavior for conference creation (launch video conference if usable, and video mode based on the current call)
This commit is contained in:
parent
616a18dcd4
commit
92f6ed3390
1 changed files with 9 additions and 3 deletions
|
|
@ -148,12 +148,18 @@ bool ConferenceHelperModel::ConferenceAddModel::removeFromConference (const QStr
|
|||
|
||||
void ConferenceHelperModel::ConferenceAddModel::update () {
|
||||
shared_ptr<linphone::Conference> conference = mConferenceHelperModel->mCore->getConference();
|
||||
bool enablingVideo = CoreManager::getInstance()->getSettingsModel()->getVideoConferenceEnabled();// Video is not yet fully supported by the application in conference
|
||||
|
||||
auto currentCall = CoreManager::getInstance()->getCore()->getCurrentCall();
|
||||
bool enablingVideo = false;
|
||||
if( currentCall )
|
||||
enablingVideo = currentCall->getCurrentParams()->videoEnabled();
|
||||
if(!conference){
|
||||
auto parameters = mConferenceHelperModel->mCore->createConferenceParams(conference);
|
||||
parameters->enableVideo(enablingVideo);
|
||||
if(!enablingVideo)
|
||||
if(!CoreManager::getInstance()->getSettingsModel()->getVideoConferenceEnabled()) {
|
||||
parameters->enableVideo(false);
|
||||
parameters->setConferenceFactoryAddress(nullptr);// Do a local conference
|
||||
}else
|
||||
parameters->enableVideo(enablingVideo);
|
||||
conference = mConferenceHelperModel->mCore->createConferenceWithParams(parameters);
|
||||
}
|
||||
auto currentCalls = CoreManager::getInstance()->getCore()->getCalls();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue