Open helenbach opened 7 years ago
Found these that use GstVideoOverlay
:
The only problems is that those examples only cover the X11 case by retrieving the XID of the widget to draw on top of.
There is a more complete example at shows how to render on more systems here, but it uses the old XOverlay
interface (see below). The relevant code for getting the identifier for the overlay is:
#if defined (GDK_WINDOWING_WIN32)
window_handle = (guintptr)GDK_WINDOW_HWND(window);
#elif defined (GDK_WINDOWING_QUARTZ)
window_handle = gdk_quartz_window_get_nsview(window);
#elif defined (GDK_WINDOWING_X11)
window_handle = GDK_WINDOW_XID(window);
#endif
Note: the procedure described at http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+5:+GUI+toolkit+integration is old. It describes the XOverlay
interface which no longer available.
Thoughts on the above?
bump
buuuuump
~bump~
@helenbach: Have you tried out any of the code for this?
The update version of the GUI integration tutorial https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html.
Any links to examples you've found?