# How to display GStreamer video in my own Gtk::Window?

**URL:** <https://www.ruby-forum.com/t/how-to-display-gstreamer-video-in-my-own-gtk-window/181158>\
**Category:** Ruby-Gnome 2\
**Created:** [January 6, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/how-to-display-gstreamer-video-in-my-own-gtk-window/181158 "2010-01-06T15:07:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_Walles](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7c8e57/32.png) [@Johan\_Walles](https://www.ruby-forum.com/u/Johan_Walles)\
**Post date:** [January 6, 2010, 3:07pm UTC](https://www.ruby-forum.com/t/how-to-display-gstreamer-video-in-my-own-gtk-window/181158/1 "2010-01-06T15:07:13Z")

</div>

Hi!

How can I display GStreamer video in an Gtk::Window that I created on my  
own?

I haven’t found any example in Ruby, so I’m trying to port this:  
[https://svn.sat.qc.ca/trac/miville/browser/inhouse/prototypes/gstreamer/cpp/fullscreen/test.c?rev=1235](https://svn.sat.qc.ca/trac/miville/browser/inhouse/prototypes/gstreamer/cpp/fullscreen/test.c?rev=1235)

To connect the stream to the Window, that example does:  
gst\_x\_overlay\_set\_xwindow\_id(GST\_X\_OVERLAY(data),  
GDK\_WINDOW\_XWINDOW(widget-\>window));

However, I can’t find any references to X Overlays in the Gst  
documentation at  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby%2FGStreamer](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Ruby%2FGStreamer) .

So what do I need to do to display GStreamer video in my own window?

Regards //Johan
