mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +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:
32
SrtReceiverSource.h
Normal file
32
SrtReceiverSource.h
Normal 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
|
||||
Reference in New Issue
Block a user