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)
45 bool start(
StreamType type,
const QString &host, quint16 port);
56 static bool isStreamTypeAvailable(StreamType type);
59 bool _startPipeline(
const QString &launch);
60#ifdef QGC_GST_RTSP_SERVER
61 bool _startRtsp(
const QString &host, quint16 port);
64 GstRTSPServer *_rtspServer =
nullptr;
65 GMainLoop *_rtspLoop =
nullptr;
66 GMainContext *_rtspContext =
nullptr;
67 std::thread _rtspThread;
71 bool _running =
false;
struct _GstElement GstElement
Serves a synthetic (videotestsrc) live video stream for MockLink so the GStreamer receive pipeline ca...
MockVideoStreamServer(const MockVideoStreamServer &)=delete
MockVideoStreamServer()=default
QString servedUri() const
MockVideoStreamServer & operator=(const MockVideoStreamServer &)=delete