[gst-devel] How to embed video in gtk app

Stefan Kost ensonic at hora-obscura.de
Sat Mar 28 19:55:22 CET 2009


Fabian Sturm schrieb:
> Hi!
> 
> I am looking for the simplest possible way to embed a video in a gtk
> app. Preferable I could embed any type of video but ogg alone would be
> enough as a start. Since I could not find an existing gtk widget, I
> started to directly using gstreamer.
> 
> Right now I have stripped down the seek.c example code to the minimum.
> But with the xvimagesink I can only get the video in a separate window.

You need to use the XOverlay interface. Look at e.g.
gst-plugins-base/tests/examples/seek/seek.c

Stefan

> 
> My current code: http://pastebin.com/m33a6019c
> 
> So for now my open questions are:
> 
> - How can I get the video embedded in gtk and not as seperate window
> 
> - How can I autodetect and play any supported format
> 
> Thanks a lot,
> Fabian
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list