

To get a good overlook, I stripped of the comments. The interface declared in "VLCWrapper.h" is small and the member functions are quite self-explanatory. The C++-Interface of VLCWrapper to LIBVLC The project website is a good starting point if you plan to code something with VLC or extend the VLCWrapper. The most valuable source of information about the VLC API for me was the developer section on the VLC website and the documented C-headers of the VLC source. )įor testing purposes, I wrote a simple media player which uses the VLCWrapper. Please excuse any bugs because this wrapper is more a quick hack than a feature complete wrapper. All sourcecode in this arcticle is licensed under the CPOL. Libvlc-library is released under the LGPL, so you can use it in commercial applications. It provides basic media playback functionality. The result is a little wrapper around the libvlc-library. Because I've been using VLC for media playback for many years now, I started playing around with the VLC API.

I was looking for an easy way to integrate video playback in my C++ applications.

This article presents a little C++-wrapper for the libvlc-library, which is the core component of the VLC media player. They are bigger (~36MB) than the normal ZIPs on the download page. The source package also includes the VLC headers and the libs for linking. You can find the libs on the videolan site in special ZIP files intended for developers. This package includes projects for Visual Studio 6 and Visual Studio 2010. You will also need to have libvlc.dll and libvlccore.dll in your path. Download demo project - 24.82 KBįor the demo, you need to download the actual VLC package and copy the plug-ins in the corresponding directory of the demo.
