3#include <QtCore/QLoggingCategory>
4#include <QtCore/QString>
5#include <QtCore/QtGlobal>
9#ifdef QGC_GST_RTSP_SERVER
11typedef struct _GstRTSPServer GstRTSPServer;
12typedef struct _GMainLoop GMainLoop;
13typedef struct _GMainContext GMainContext;
16Q_DECLARE_LOGGING_CATEGORY(MockVideoStreamServerLog)
58 static bool isStreamTypeAvailable(StreamType type);
61 bool _startPipeline(
const QString& launch);
62#ifdef QGC_GST_RTSP_SERVER
64 int _startRtsp(StreamType type,
const QString& host, quint16 port);
67 GstRTSPServer* _rtspServer =
nullptr;
68 GMainLoop* _rtspLoop =
nullptr;
69 GMainContext* _rtspContext =
nullptr;
70 std::thread _rtspThread;
struct _GstElement GstElement
void stop()
Stop the stream and release all resources. Safe to call when not running.
MockVideoStreamServer(const MockVideoStreamServer &)=delete
MockVideoStreamServer()=default
QString servedUri() const
MockVideoStreamServer & operator=(const MockVideoStreamServer &)=delete
bool start(StreamType type, const QString &host, quint16 port)