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

32
SrtReceiverSource.h Normal file
View File

@@ -0,0 +1,32 @@
#ifndef SRTRECEIVERSOURCE_H
#define SRTRECEIVERSOURCE_H
#include "StreamSource.h"
class SrtReceiverSource : public StreamSource
{
std::string ip_;
std::string port_;
public:
SrtReceiverSource(uint64_t id = 0);
// Source interface
void accept (Visitor& v) override;
// StreamSource interface
Stream *stream() const override { return stream_; }
// specific interface
void setConnection(const std::string &ip, const std::string &port);
std::string ip() const { return ip_; }
std::string port() const { return port_; }
std::string uri() const;
glm::ivec2 icon() const override;
std::string info() const override;
};
#endif // SRTRECEIVERSOURCE_H