The vlcj project provides a Java framework to allow an instance of a native vlc media player to be embedded in a Java AWT Window or Swing JFrame.
You get more than just simple bindings, you also get a higher level framework that hides a lot of the complexities of working with libvlc.
vlcj is primarily developed and therefore extensively tested on Linux - it does also work just fine on Windows and should work on Mac - but for Mac you likely need a bleeding-edge release of vlc.
At least JDK 1.6 is required, and it works without changes on JDK 1.7.
This is the open source vlcj project page, see also the 'official' home page where you can find more information as well as some new simple tutorials.
Add the following Maven dependency to your own project pom.xml:
<dependency>
<groupId>uk.co.caprica</groupId>
<artifactId>vlcj</artifactId>
<version>2.1.0</version>
</dependency>
02/01/2013 Happy New Year! Current release artifacts are now available on Maven Central.
12/12/2012 github deprecated the downloads section, go to googlecode for distribution archives.
27/10/2012 New pre-release snapshot version 2.2.0:
- new native log integration (libvlc 2.1.x);
- new mini-framework to help make it easy to use media players in a synchronous way;
- native media discoverer integration - it is now possible to get a list of audio and video (on Linux) capture devices;
- media meta data now provides media length (if available);
- minor bug fixes and memory leak fixes;
- vlcj now works on Java7 on Linux without any workaround needed.
Note: vlcj now requires JNA 3.5.0 or later.
20/05/2012 Released version 2.1.0, for use with libvlc 2.0.
28/01/2012 Moved to github.
You can also follow @capricasoftware on Twitter for more vlcj news.
There is also a new vlcj-users discussion group at vlcj-users.
The vlcj project page is at github.
Online Javadoc is available:
Documentation is being made available at Caprica Software.
Free support for Open Source and non-commercial projects is generally provided - you can use github issues or the vlcj google group for this purpose.
Support for commercial projects is provided exclusively on commercial terms - send an email to the following address for more information:
mark [dot] lee [at] capricasoftware [dot] co [dot] uk
The vlcj framework is provided under the GPL, version 3 or later.
If you want to consider a commercial license for vlcj that allows you to use and redistribute vlcj without complying with the GPL then send your proposal to:
mark [dot] lee [at] capricasoftware [dot] co [dot] uk