Switch off camera on start. LinphoneCore could start the camera if the application stopped while still showing it.

This commit is contained in:
Julien Wadel 2023-02-13 14:29:25 +01:00
parent f3d2842d98
commit 83cf7133bd
2 changed files with 4 additions and 2 deletions

View file

@ -11,11 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- File viewer in chats (Image/Animated Image/Video/Texts) with the option to export the file.
- Accept/decline CLI commands.
## 5.0.11 - udnefined
## 5.0.11 - undefined
### Fixed
- Display of non-Ascii avatar
- Crash on ending call in conference.
- Switch off camera at startup.
## 5.0.10 - 2023-02-02

View file

@ -272,7 +272,6 @@ void CoreManager::createLinphoneCore (const QString &configPath) {
mCore->addListener(mHandlers);
mCore->setVideoDisplayFilter("MSQOGL");
mCore->usePreviewWindow(true);
mCore->enableVideoPreview(false);
// Force capture/display.
// Useful if the app was built without video support.
// (The capture/display attributes are reset by the core in this case.)
@ -281,6 +280,8 @@ void CoreManager::createLinphoneCore (const QString &configPath) {
config->setInt("video", "capture", 1);
config->setInt("video", "display", 1);
}
mCore->enableVideoPreview(false);// SDK doesn't write the state in configuration if not ready.
config->setInt("video", "show_local", 0);// So : write ourself to turn off camera before starting the core.
QString userAgent = Utils::computeUserAgent(config);
mCore->setUserAgent(Utils::appStringToCoreString(userAgent), mCore->getVersion());
mCore->start();