3#include <QtCore/QCoreApplication>
4#include <QtCore/QSettings>
11#ifdef QGC_GST_STREAMING
18class QtMultimediaVideoBackend final :
public VideoBackend
21 Capabilities capabilities()
const override {
return {.streaming =
true}; }
23 VideoReceiver* createReceiver(QObject* parent)
override {
return new QtMultimediaVideoReceiver(parent); }
30#ifdef QGC_GST_STREAMING
33 static QtMultimediaVideoBackend backend;
45 return QCoreApplication::translate(
"VideoBackend",
"Video streaming failed to initialize.");
52 if (settings.contains(AppSettings::gstDebugLevelName)) {
53 return settings.value(AppSettings::gstDebugLevelName).toInt();
VideoBackend on GStreamer: the only place the app reaches GStreamer's lifecycle from,...
QString settingsGroup() const
virtual QString initFailureMessage() const
What to tell the user once initialize() has failed: what failed, and what plays the streams instead.
static VideoBackend & instance()
static bool disabledForUnitTests()
True when the backend is skipped under unit tests (opt back in with QGC_TEST_ENABLE_GSTREAMER).
static std::optional< int > persistedDebugLevel()
The persisted gstDebugLevel setting, read before the settings system exists; nullopt when it was neve...
VideoBackend(const VideoBackend &)=delete