19 #include "../../QGst/Quick/videoitem.h"
20 #include "../../QGst/Quick/videosurface.h"
21 #include <QtQml/QQmlExtensionPlugin>
23 class QtGStreamerPlugin :
public QQmlExtensionPlugin
26 Q_PLUGIN_METADATA(IID
"org.freedesktop.gstreamer.QtGStreamerQuick2-1.0"
27 FILE
"QtGStreamerQuick2.json")
29 virtual void registerTypes(
const char *uri);
32 void QtGStreamerPlugin::registerTypes(
const char *uri)
35 qmlRegisterType<QGst::Quick::VideoItem>(uri, 1, 0,
"VideoItem");
36 qmlRegisterUncreatableType<QGst::Quick::VideoSurface>(uri, 1, 0,
"VideoSurface",
37 QLatin1String(
"Creating a QGst::Quick::VideoSurface from QML is not supported"));