[Bug 786246] New: qmlglsink: Add itemInitialized signal
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Sun Aug 13 17:59:11 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=786246
Bug ID: 786246
Summary: qmlglsink: Add itemInitialized signal
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: enhancement
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: dv at pseudoterminal.org
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
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.
There is the sceneGraphInitialized signal, but it is not suitable for this,
since the GLVideoItem still has to get and wrap the GL context before it is
ready for playback. This is done in QtGLVideoItem::onSceneGraphInitialized().
Having a dedicated itemInitialized signal in the QML item not only makes
autoplay easier to accomplish, it is also a more futureproof solution, since it
would make refactoring of the item code easier. Suppose for example that the
initialization process is heavily changed for some reason, and the item now
becomes ready to play at some other moment compared to now. With the signal in
place, all that needs to be done is to simply move the "emit
itemInitialized();" line to wherever the initialization is finished.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list