helenbach / GStreamer

0 stars 0 forks source link

Embed GStreamer into GTK Widget #2

Open helenbach opened 7 years ago

zmughal commented 7 years ago

Any links to examples you've found?

zmughal commented 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.

zmughal commented 7 years ago

Thoughts on the above?

zmughal commented 7 years ago

bump

zmughal commented 7 years ago

buuuuump

zmughal commented 7 years ago

~bump~

zmughal commented 7 years ago

Another C example.

zmughal commented 7 years ago

@helenbach: Have you tried out any of the code for this?

zmughal commented 7 years ago

The update version of the GUI integration tutorial https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html.

zmughal commented 5 years ago

Closed by https://github.com/project-renard/p5-Renard-API-Gtk3/pull/11.