Added support for "track", "audio" and "video" params when pushing out RTMP. Params are not sent to target

This commit is contained in:
Thulinma 2016-10-11 12:47:34 +02:00
parent 3312848ada
commit 441932efe5

View file

@ -41,6 +41,14 @@ namespace Mist {
streamOut = streamName; streamOut = streamName;
} }
} }
if (streamName.find('?') != std::string::npos){
streamName = streamName.substr(0, streamName.find('?'));
}
if (streamOut.find('?') != std::string::npos){
std::string tmpVars = streamOut.substr(streamOut.find('?') + 1);
streamOut = streamOut.substr(0, streamOut.find('?'));
parseVars(tmpVars);
}
initialize(); initialize();
INFO_MSG("About to push stream %s out. Host: %s, port: %d, app: %s, stream: %s", streamName.c_str(), host.c_str(), port, app.c_str(), streamOut.c_str()); INFO_MSG("About to push stream %s out. Host: %s, port: %d, app: %s, stream: %s", streamName.c_str(), host.c_str(), port, app.c_str(), streamOut.c_str());
myConn = Socket::Connection(host, port, false); myConn = Socket::Connection(host, port, false);