Page 1 of 1

How to embed VLC into a GUI-based C/C++ application

Posted: 15 Oct 2008 12:28
by jgg
Hi,

First of all, please excuse how general my question is, but I don't want to be attached to any GUI framework due to possible incompatibilities with VLC. So, first I ask and then I decide. Overall, my question is quite simple, but as I have not seen any answered thread with the same issue I start this one.

I want to develop a GUI-based C/C++ IPTV client application for the Linux platform, so I need to embed the VLC video window into my application GUI. I would like to know how it must be done and if it strongly depends in the GUI framework used (GTK+, Qt, wxWidgets...).

If any more details are needed, please, tell me. Any help is much appreciated.

Thank you for your time.

Re: How to embed VLC into a GUI-based C/C++ application

Posted: 15 Oct 2008 17:20
by Jean-Baptiste Kempf
VLC doesn't depend on ANY GUI. VLC UI are modules that can be activated or not. 99.99% of population activate them, but they are not forced at all.

Re: How to embed VLC into a GUI-based C/C++ application

Posted: 16 Oct 2008 09:02
by jgg
What I meant to say is if the VLC API provides with any specific objects and/or methods in order to get a media player window embedded in any GUI, and if this objects/methods depended on the GUI framework used.Obviously, such methods may exist as VLC media player can be launched using wxWidgets and Qt, but I would like to get the main guidelines to get this on my own application.

Any help would be much appreciated. Thanks.

Re: How to embed VLC into a GUI-based C/C++ application

Posted: 16 Oct 2008 11:52
by Jean-Baptiste Kempf
Well, no, VLC doesn't provide that, but provide a way to draw the video on a surface you specify.

Re: How to embed VLC into a GUI-based C/C++ application

Posted: 16 Oct 2008 12:04
by jgg
And... could you please tell me where can I find such way?

Thanks.

Re: How to embed VLC into a GUI-based C/C++ application

Posted: 28 Oct 2008 13:06
by basos
My last project (that im still working on) deals with this issue. But its still young..

Take a look here

But don't be impatient. There no full solutions here, yet.
You could (at least) find your c++ guidelines there..
Also code testing and contribution back to the community is important.

basos

Re: How to embed VLC into a GUI-based C/C++ application

Posted: 28 Oct 2008 18:14
by RĂ©mi Denis-Courmont
And... could you please tell me where can I find such way?
The documentation is in the libvlc header files (include/vlc/*.h)