Commit e2ddb931 authored by Wescoeur's avatar Wescoeur

feat(src/components/core/CoreManager): force capture/display attributes

parent 6aceba9d
......@@ -138,6 +138,15 @@ void CoreManager::createLinphoneCore (const QString &configPath) {
mCore->usePreviewWindow(true);
mCore->setUserAgent("Linphone Desktop", LINPHONE_QT_GIT_VERSION);
// Force capture/display.
// Useful if the app was built without video support.
// (The capture/display attributes are reset by the core in this case.)
if (mCore->videoSupported()) {
shared_ptr<linphone::Config> config = mCore->getConfig();
config->setInt("video", "capture", 1);
config->setInt("video", "display", 1);
}
setDatabasesPaths();
setOtherPaths();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment