SrtReceiverSource for broadcasted stream

Implemented dedicated source, with UI for creation and saving appropriate settings.
Also updated info and imgui visitors accordingly
This commit is contained in:
Bruno Herbelin
2022-01-24 20:18:33 +01:00
parent f5f7d3c154
commit 2ae0ef40d4
24 changed files with 330 additions and 70 deletions

View File

@@ -50,6 +50,8 @@
#include "MultiFileSource.h"
#include "StreamSource.h"
#include "NetworkSource.h"
#include "SrtReceiverSource.h"
#include "ActionManager.h"
#include "MixingGroup.h"
#include "Streamer.h"
@@ -355,7 +357,6 @@ Source * Mixer::createSourceDevice(const std::string &namedevice)
return s;
}
Source * Mixer::createSourceNetwork(const std::string &nameconnection)
{
// ready to create a source
@@ -368,6 +369,17 @@ Source * Mixer::createSourceNetwork(const std::string &nameconnection)
return s;
}
Source * Mixer::createSourceSrt(const std::string &ip, const std::string &port)
{
// ready to create a source
SrtReceiverSource *s = new SrtReceiverSource;
s->setConnection(ip, port);
// propose a new name based on address
s->setName(s->uri());
return s;
}
Source * Mixer::createSourceGroup()
{