2009/6/29 João Paulo Mafra <jpmneofito@xxxxxxxxx>: > Hi, > > I'm trying to make a video player using gtk and gstreamer. I already can > show gstreamer videos in a gtk window (as shown in > http://tristanswork.blogspot.com/2008/09/fullscreen-video-in-gstreamer-with-gtk.html), > but I need to show the video in a tab of the GtkNotebook widget. I asked in > the gstreamer mailing list how to do that, and they tell me to use the > GtkSocket widget, but it isn't as simple as it seems. GtkSocket needs a > GtkPlug, which needs a GdkNativeWindow. I'm not sure on how to connect the > gstreamer x-overlay plugin > (http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-iface-xoverlay.html) > with the GtkSocket/GtkPlug. I think this is because of my lack of X11 > knowledge. Do you think trying to use GtkSocket/GtkPlug is really the path > to go? Any other suggestion? > > Any help will be much appreciated. >From what I recall the gstreamer pipeline sends an event on the bus, you need to give it an XID from there, I have embedded it using a GtkDrawingArea and just setting a black background and returning the right xid from the bus message handler. You can get the correct XID from the drawing area`s widget->window using the apis in gdkx.h The tricky thing with GtkNotebook is that it maps pages on demand, so if you want to do this trick inside a notebook you need to ensure that its page has been mapped and realized once (possibly by just showing that page and realizing the notebook with that page shown). Cheers, -Tristan _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list