fix #LINQT-1936 enable video and only change media direction to switch video in call
This commit is contained in:
parent
f30d8f3d7f
commit
d3d352948b
2 changed files with 6 additions and 6 deletions
|
|
@ -132,7 +132,7 @@ void CallModel::activateLocalVideo(std::shared_ptr<linphone::CallParams> ¶ms
|
|||
lInfo() << sLog()
|
||||
.arg("Updating call with video enabled and media direction set to %1")
|
||||
.arg((int)params->getVideoDirection());
|
||||
if (enable) params->enableVideo(SettingsModel::getInstance()->getVideoEnabled());
|
||||
params->enableVideo(SettingsModel::getInstance()->getVideoEnabled());
|
||||
auto videoDirection = enable ? linphone::MediaDirection::SendRecv : linphone::MediaDirection::RecvOnly;
|
||||
params->setVideoDirection(videoDirection);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1084,11 +1084,11 @@ AbstractWindow {
|
|||
}
|
||||
}
|
||||
onJoinConfRequested: uri => {
|
||||
mainWindow.joinConference(uri, {
|
||||
"microEnabled": microEnabled,
|
||||
"localVideoEnabled": localVideoEnabled
|
||||
})
|
||||
}
|
||||
mainWindow.joinConference(uri, {
|
||||
"microEnabled": microEnabled,
|
||||
"localVideoEnabled": localVideoEnabled
|
||||
})
|
||||
}
|
||||
onCancelJoiningRequested: mainWindow.cancelJoinConference()
|
||||
onCancelAfterJoinRequested: mainWindow.cancelAfterJoin()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue