mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Implemented dedicated source, with UI for creation and saving appropriate settings. Also updated info and imgui visitors accordingly
33 lines
712 B
C++
33 lines
712 B
C++
#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
|