mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 11:19:58 +01:00
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:
14
Mixer.cpp
14
Mixer.cpp
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user