set enableVideo to false if audio call #LINQT-2086

This commit is contained in:
gaelle 2025-10-27 18:20:32 +01:00 committed by gaelle.braud
parent b3135ea177
commit cb63b1a112

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());
params->enableVideo(SettingsModel::getInstance()->getVideoEnabled());
params->enableVideo(enable);
auto videoDirection = enable ? linphone::MediaDirection::SendRecv : linphone::MediaDirection::RecvOnly;
params->setVideoDirection(videoDirection);
}