00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "videoitem.h"
00019 #include <QtDeclarative/QDeclarativeExtensionPlugin>
00020
00021 class QtGStreamerPlugin : public QDeclarativeExtensionPlugin
00022 {
00023 Q_OBJECT
00024 public:
00025 void registerTypes(const char *uri);
00026 };
00027
00028 void QtGStreamerPlugin::registerTypes(const char *uri)
00029 {
00030 qmlRegisterType<VideoItem>(uri, 0, 10, "VideoItem");
00031 qmlRegisterUncreatableType<QGst::Ui::GraphicsVideoSurface>(uri, 0, 10, "GraphicsVideoSurface",
00032 QLatin1String("Creating a QGst::Ui::GraphicsVideoSurface from QML is not supported"));
00033 }
00034
00035 Q_EXPORT_PLUGIN2(qtgstPlugin, QtGStreamerPlugin)
00036
00037 #include "plugin.moc"