PDA

View Full Version : QtGStreamer VideoItem not found



PaAePr
18th February 2014, 16:45
Hi there,

i'm trying to build a simple Qt-Quick 2 Application playing a video file using QtGStreamer. The building process of QtGStreamer was fine, but now I try to build the qmlplayer2 example:

http://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/examples/qmlplayer2

The problem is, that Qt-Creator says. that the VideoItem is an unknown component.


import QtGStreamer 0.10 didn't worked first, but by creating a .qmltypes-file with qmlplugindump I solved the problem.

plugins.qmltypes

import QtQuick.tooling 1.1

// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
// 'qmlplugindump QtGStreamer 0.10 /home/mathis/Qt5.2/5.2.0/gcc/imports/QtGStreamer'

Module {
Component {
name: "QGst::Quick::VideoItem"
defaultProperty: "data"
prototype: "QQuickItem"
exports: ["VideoItem 0.10"]
exportMetaObjectRevisions: [0]
Property { name: "surface"; type: "QGst::Quick::VideoSurface"; isPointer: true }
}
Component {
name: "QGst::Quick::VideoSurface"
prototype: "QObject"
exports: ["VideoSurface 0.10"]
exportMetaObjectRevisions: [0]
}

}

Now I don't understand why the VideoItem is unknown, though it's defined in the type file.

Has anybody an idea how I can solve this?


Best regards