Set camera state on call creation in order to avoid using not wanted state while updating the call.
Cause: toggling screensharing will activate the camera if the call is a video call.
This commit is contained in:
parent
72e32ec160
commit
3c264fd3ee
1 changed files with 1 additions and 0 deletions
|
|
@ -321,6 +321,7 @@ bool ToolModel::createCall(const QString &sipAddress,
|
|||
}
|
||||
std::shared_ptr<linphone::CallParams> params = core->createCallParams(nullptr);
|
||||
params->enableVideo(localVideoEnabled);
|
||||
params->enableCamera(localVideoEnabled);
|
||||
auto videoDirection = localVideoEnabled ? linphone::MediaDirection::SendRecv : linphone::MediaDirection::RecvOnly;
|
||||
params->setVideoDirection(videoDirection);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue