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

*nix specific usage questions
jgg
Cone that earned his stripes
Cone that earned his stripes
Posts: 144
Joined: 03 Nov 2007 15:49

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

Postby jgg » 15 Oct 2008 12:28

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 15 Oct 2008 17:20

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.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jgg
Cone that earned his stripes
Cone that earned his stripes
Posts: 144
Joined: 03 Nov 2007 15:49

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

Postby jgg » 16 Oct 2008 09:02

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 16 Oct 2008 11:52

Well, no, VLC doesn't provide that, but provide a way to draw the video on a surface you specify.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

jgg
Cone that earned his stripes
Cone that earned his stripes
Posts: 144
Joined: 03 Nov 2007 15:49

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

Postby jgg » 16 Oct 2008 12:04

And... could you please tell me where can I find such way?

Thanks.

basos
Blank Cone
Blank Cone
Posts: 24
Joined: 17 Jul 2008 14:19

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

Postby basos » 28 Oct 2008 13:06

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15221
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 28 Oct 2008 18:14

And... could you please tell me where can I find such way?
The documentation is in the libvlc header files (include/vlc/*.h)
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests