[vlc-devel] Re: VLC GTK widget
Omar Barneto
obarneto at hasar.com
Wed May 24 17:37:19 CEST 2006
I wanted to do the same as you need and I'd to modify the file
/modules/video_output/x11/xcommon.c on the
vlc source tree
This affect the plugin libx11_plugin.so,libglx_plugin.so and
libxvideo_plugin.so.
The GTK program must inform to vlc plugin the window ID setting a
environment variable:
WINDOWID=ID vlc -Idummy options files
I have a gtkmm program but in gtk is the same.
In a Gtkmm program you must add a Gtk::Socket object to the object where
you want to play the video and obtain the window ID using.
Gtk::Socket s;
Gtk::VBox box;
box.pack_start(s);
// build the command line
char *cmd = g_strdup_printf("WINDOWID=%u vlc -I dummy options
file",s->get_id());
run(cmd); // Execute vlc in background
g_free_(wid);
If you wanted I can send you the modify program to a personal e-mail
address because I can't attach files to
the list.
Christophe HAUSER wrote:
> Hi,
>
> I'm looking for something like a VLC GTK widget, in order to plug a
> VLC output in any GTK (or other) app.
> As there is a VLC activeX control for win32, I wonder if there is such
> thing for any Linux graphical library.
>
>
>
> Christophe HAUSER
> http://kereoz.sup.fr
>
> ------------------------------------------------------------------------
> *Faites de Yahoo! votre page d'accueil sur le web* pour retrouver
> directement vos services préférés : vérifiez vos nouveaux mails,
> lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici
> <http://us.rd.yahoo.com/mail/mail_taglines/yahoofr/*http://fr.yahoo.com/set>.
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list