19#include <QtDeclarative/QDeclarativeExtensionPlugin>
21#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
22# define Q_PLUGIN_METADATA(x)
25class QtGStreamerPlugin :
public QDeclarativeExtensionPlugin
28 Q_PLUGIN_METADATA(IID
"org.freedesktop.gstreamer.Qt5GStreamerQuick1-1.0")
30 void registerTypes(
const char *uri);
33void QtGStreamerPlugin::registerTypes(
const char *uri)
35 qmlRegisterType<VideoItem>(uri, 1, 0,
"VideoItem");
36 qmlRegisterUncreatableType<QGst::Ui::GraphicsVideoSurface>(uri, 1, 0,
"GraphicsVideoSurface",
37 QLatin1String(
"Creating a QGst::Ui::GraphicsVideoSurface from QML is not supported"));
40#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
41Q_EXPORT_PLUGIN2(qtgstPlugin, QtGStreamerPlugin)