[Gtk-sharp-list] RFC: Add API to get Drawable xid for user with GStreamer

mkbosmans mkbosmans at gmail.com
Wed May 27 06:14:33 EDT 2009


Hi list,

I'm using Gtk# in combination with GStreamer. In GStreamer the way to send
video to a specific window is to set the XwindowId property of the XOverlay
interface of the video sink. On Windows XwindowId can be set to the HWND of
the window.

Currently I P/Invoke these to functions:
gdk_x11_drawable_get_xid
gdk_win32_drawable_get_handle
and pass the result to the GStreamer XOverlay.
It would be really nice to have a managed wrapper for these functions.

>From my perspective (app-developer) it would be the best to have one place
to call (e.g. Gdk.Drawable.Xid{get;}), so that there isn't any platform
specific code in the application.
But may be returning the HWND on Windows is too specific to the GStreamer
XOverlay interface.
Any thoughts?

Maarten
-- 
View this message in context: http://www.nabble.com/RFC%3A-Add-API-to-get-Drawable-xid-for-user-with-GStreamer-tp23739654p23739654.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list