Commit d9a294ac authored by Carlos Rafael Giani's avatar Carlos Rafael Giani Committed by Sebastian Dröge

qmlglsink: Add itemInitialized signal to QML item

This is useful for autoplay for example. With autoplay, it is necessary to
wait until the scene graph is fully set up. This signal is emitted once the
QML item node is ready. So, inside a connected slot, the pipeline's state
can be set to PLAYING to automatically start playback as soon as the QML
script is loaded.
parent ac068bd2
......@@ -289,6 +289,8 @@ QtGLVideoItem::onSceneGraphInitialized ()
GST_DEBUG ("%p created wrapped GL context %" GST_PTR_FORMAT, this,
emit itemInitialized();
......@@ -77,6 +77,9 @@ public:
/* private for C interface ... */
QtGLVideoItemPrivate *priv;
void itemInitialized();
private Q_SLOTS:
void handleWindowChanged(QQuickWindow * win);
void onSceneGraphInitialized();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment