mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
fix call activate video when create call
This commit is contained in:
parent
0966c5ac17
commit
fcf88315ab
2 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ CallCore::CallCore(const std::shared_ptr<linphone::Call> &call) : QObject(nullpt
|
|||
mIsStarted = mDuration > 0;
|
||||
mMicrophoneMuted = call->getMicrophoneMuted();
|
||||
mSpeakerMuted = call->getSpeakerMuted();
|
||||
auto videoDirection = call->getCurrentParams()->getVideoDirection();
|
||||
auto videoDirection = call->getParams()->getVideoDirection();
|
||||
mLocalVideoEnabled =
|
||||
videoDirection == linphone::MediaDirection::SendOnly || videoDirection == linphone::MediaDirection::SendRecv;
|
||||
auto remoteParams = call->getRemoteParams();
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ bool ToolModel::createCall(const QString &sipAddress,
|
|||
SettingsModel::getInstance()->setCallToneIndicationsEnabled(true);
|
||||
}
|
||||
std::shared_ptr<linphone::CallParams> params = core->createCallParams(nullptr);
|
||||
if (localVideoEnabled) CallModel::activateLocalVideo(params, localVideoEnabled);
|
||||
CallModel::activateLocalVideo(params, localVideoEnabled);
|
||||
|
||||
bool micEnabled = options.contains("microEnabled") ? options["microEnabled"].toBool() : true;
|
||||
params->enableMic(micEnabled);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue