18 #include "videoitem.h"
19 #include <QtDeclarative/QDeclarativeExtensionPlugin>
21 class QtGStreamerPlugin :
public QDeclarativeExtensionPlugin
25 void registerTypes(
const char *uri);
28 void QtGStreamerPlugin::registerTypes(
const char *uri)
30 qmlRegisterType<VideoItem>(uri, 0, 10,
"VideoItem");
31 qmlRegisterUncreatableType<QGst::Ui::GraphicsVideoSurface>(uri, 0, 10,
"GraphicsVideoSurface",
32 QLatin1String(
"Creating a QGst::Ui::GraphicsVideoSurface from QML is not supported"));
35 Q_EXPORT_PLUGIN2(qtgstPlugin, QtGStreamerPlugin)