32 Q_PROPERTY(
bool active READ isActive WRITE setActive NOTIFY activeChanged)
33 Q_PROPERTY(QString gstBinDescription READ gstBinDescription CONSTANT)
36 explicit QGStreamerVideoSource(
const QString &gstBinDescription, QObject *parent =
nullptr);
37 explicit QGStreamerVideoSource(GstElement *gstElement, QObject *parent =
nullptr);
38 ~QGStreamerVideoSource() override;
40 bool isActive()
const;
41 QString gstBinDescription()
const;
42 GstElement *gstElement()
const;
43 QMediaCaptureSession *captureSession()
const;
46 void setActive(
bool active);
47 void start() { setActive(
true); }
48 void stop() { setActive(
false); }
51 void activeChanged(
bool active);
54 explicit QGStreamerVideoSource(QObject *parent);
57 QPlatformCamera *platformVideoSource()
const;
59 void setCaptureSession(QMediaCaptureSession *session);
62 Q_DISABLE_COPY(QGStreamerVideoSource)
63 Q_DECLARE_PRIVATE(QGStreamerVideoSource)
64 friend class QMediaCaptureSession;