fix #LINQT-1936 enable video and only change media direction to switch video in call

This commit is contained in:
Gaelle Braud 2025-09-03 11:09:39 +02:00
parent f30d8f3d7f
commit d3d352948b
2 changed files with 6 additions and 6 deletions

View file

@ -132,7 +132,7 @@ void CallModel::activateLocalVideo(std::shared_ptr<linphone::CallParams> &params
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);
}