24 Q_PROPERTY(
bool active READ isActive WRITE setActive NOTIFY activeChanged)
25 Q_PROPERTY(QString gstBinDescription READ gstBinDescription CONSTANT)
28 explicit QGstreamerVideoSource(
const QString &gstBinDescription, QObject *parent =
nullptr);
29 explicit QGstreamerVideoSource(GstElement *gstElement, QObject *parent =
nullptr);
30 ~QGstreamerVideoSource() override;
32 bool isActive()
const;
33 QString gstBinDescription()
const;
34 GstElement *gstElement()
const;
35 QMediaCaptureSession *captureSession()
const;
38 void setActive(
bool active);
39 void start() { setActive(
true); }
40 void stop() { setActive(
false); }
43 void activeChanged(
bool active);
46 explicit QGstreamerVideoSource(QObject *parent);
49 QPlatformCamera *platformVideoSource()
const;
50 void setCaptureSession(QMediaCaptureSession *session);
52 Q_DISABLE_COPY(QGstreamerVideoSource)
53 Q_DECLARE_PRIVATE(QGstreamerVideoSource)
54 friend class QMediaCaptureSession;