One of my experiments recently was using gtk to create the window that xvimagesink would play into, rather than creating a window from hand with XCreateSimpleWindow(). I got it working after learning how to get the X11 window ID out of a GtkWidget.<br>
<br>The GDK_WINDOW_XWINDOW(widget->window) convenience macro was what helped get me unstuck on this one.<br><br>Just use that macro to retrieve the widget's X11 window ID, then pass it to the gst_x_overlay_set_window_id() function when asked to by the prepare-xwindow-id message from a given xvimagesink.<br>
<br>I could probably whip up a trivial demonstration case if that doesn't explain well. And please correct if I'm misunderstanding the question, as always.<br><br>Hope that helps,<br>E. Westbrook<br><br><div class="gmail_quote">
2009/6/29 Joćo Paulo Mafra <span dir="ltr"><<a href="mailto:jpmneofito@gmail.com">jpmneofito@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm trying to use the widget you talked about, but it seems that I need to have another x11 window to embed it in a GtkPlug, and then add the GtkPlug in a GtkSocket. Is it correct?<br><br>I already can display gstreamer videos on a gtk window (as shown in this excelent post: <a href="http://tristanswork.blogspot.com/2008/09/fullscreen-video-in-gstreamer-with-gtk.html" target="_blank">http://tristanswork.blogspot.com/2008/09/fullscreen-video-in-gstreamer-with-gtk.html</a>), but the problem now is to show it in the contents of a tab of the GtkNotebook widget. If I need another x11 window, can I normally display the video as I'm already doing, and then pass the window id to the GtkPlug?<br>
<br><br>Thanks.<br><br><br><div class="gmail_quote">2009/6/24 Olivier Aubert <span dir="ltr"><<a href="mailto:olivier.aubert@liris.cnrs.fr" target="_blank">olivier.aubert@liris.cnrs.fr</a>></span><div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>> > I want to display videos on a limited area in a gtk widget (in a tab of the<br>
> > GtkNotebook widget). Anyone knows if is it possible?<br>
</div>Use a xvimagesink element and, using the XOverlay interface, embed it in<br>
the tab through a GtkSocket (see<br>
<a href="http://library.gnome.org/devel/gtk/stable/GtkSocket.html" target="_blank">http://library.gnome.org/devel/gtk/stable/GtkSocket.html</a> )<br>
<font color="#888888"><br>
Olivier<br>
</font><div><div></div><div><br>
<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div></div></div><br>
<br>------------------------------------------------------------------------------<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>