mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 18:59:59 +01:00
35 lines
646 B
C++
35 lines
646 B
C++
#ifndef VIDEOBROADCAST_H
|
|
#define VIDEOBROADCAST_H
|
|
|
|
#include "NetworkToolkit.h"
|
|
#include "FrameGrabber.h"
|
|
|
|
#define BROADCAST_FPS 30
|
|
|
|
class VideoBroadcast : public FrameGrabber
|
|
{
|
|
public:
|
|
|
|
VideoBroadcast(int port = 8888);
|
|
virtual ~VideoBroadcast() {}
|
|
|
|
static bool available();
|
|
|
|
void stop() override;
|
|
std::string info() const override;
|
|
|
|
private:
|
|
std::string init(GstCaps *caps) override;
|
|
void terminate() override;
|
|
|
|
// connection information
|
|
int port_;
|
|
std::atomic<bool> stopped_;
|
|
|
|
// pipeline elements
|
|
static std::string srt_sink_;
|
|
static std::string h264_encoder_;
|
|
};
|
|
|
|
#endif // VIDEOBROADCAST_H
|