Modify GreenScreen
Change-Id: I179896b2414f35f0efc543738e7ecc943d5deb1d
diff --git a/GreenScreen/pluginMediaHandler.cpp b/GreenScreen/pluginMediaHandler.cpp
index 44d68c7..51b9edf 100644
--- a/GreenScreen/pluginMediaHandler.cpp
+++ b/GreenScreen/pluginMediaHandler.cpp
@@ -35,9 +35,8 @@
: datapath_ {datapath}
, preferences_ {preferences}
{
- setGlobalPluginParameters(preferences_);
setId(datapath_);
- mVS = std::make_shared<VideoSubscriber>(datapath_);
+ mVS = std::make_shared<VideoSubscriber>(datapath_, preferences_.at("modellist"), preferences_.at("background"), preferences_.at("acceleration") == "1");
}
void
@@ -50,7 +49,6 @@
bool preferredStreamDirection = false;
auto it = preferences_.find("streamslist");
if (it != preferences_.end()) {
- Plog::log(Plog::LogPriority::INFO, TAG, "SET PARAMETERS");
preferredStreamDirection = it->second == "in";
}
oss << "preferredStreamDirection " << preferredStreamDirection << std::endl;
@@ -62,6 +60,7 @@
} else if (data.type == StreamType::video && data.direction
&& data.direction == preferredStreamDirection) {
subject->attach(mVS.get()); // the image I receive from the others on the call
+ oss << "got my received image attached" << std::endl;
attached_ = '1';
}