Work-in progress: connection manager now used in Streamer and

NetworkSource to identify possible connections, and exchange streaming
configuration.
This commit is contained in:
brunoherbelin
2020-10-24 23:53:11 +02:00
parent db0892d25b
commit 7246dfa08e
13 changed files with 459 additions and 519 deletions

View File

@@ -90,13 +90,6 @@ void Settings::Save()
RecordNode->SetAttribute("timeout", application.record.timeout);
pRoot->InsertEndChild(RecordNode);
// // Record
// XMLElement *StreamNode = xmlDoc.NewElement( "Stream" );
// StreamNode->SetAttribute("profile", application.stream.profile);
// StreamNode->SetAttribute("ip", application.stream.ip.c_str());
// StreamNode->SetAttribute("port", application.stream.port);
// pRoot->InsertEndChild(StreamNode);
// Transition
XMLElement *TransitionNode = xmlDoc.NewElement( "Transition" );
TransitionNode->SetAttribute("auto_open", application.transition.auto_open);
@@ -262,19 +255,6 @@ void Settings::Load()
application.record.path = SystemToolkit::home_path();
}
// // Stream
// XMLElement * streamnode = pRoot->FirstChildElement("Stream");
// if (streamnode != nullptr) {
// streamnode->QueryIntAttribute("profile", &application.stream.profile);
// streamnode->QueryIntAttribute("port", &application.stream.port);
// const char *ip_ = streamnode->Attribute("ip");
// if (ip_)
// application.stream.ip = std::string(ip_);
// else
// application.stream.ip = "localhost";
// }
// Source
XMLElement * sourceconfnode = pRoot->FirstChildElement("Source");
if (sourceconfnode != nullptr) {