XineCanvas - Home Page

ABOUT

The XineCanvas aims to provide a Java AWT Component displaying videos through the xine library. I started this project because I did not find any easy to use and fast video player for Java. JMF is outdated and complex to use. I don't know other solutions. Pointers are welcome.

NEWS

BUILDING

The building is in three phases:

  1. Compile the classes, in particular XineCanvas (javac xinecanvas/*.java);
  2. Generate the C header file xinecanvas_XineCanvas.h. The script build_header.sh do this. It is put in the XIneCanvasNative directory;
  3. Build the native library (Unix only at the moment). A build.sh script in the directory XineCanvasNative is provided.

USAGE

This package is for (Java) developers. The project provides essentially 3 classes/interfaces:

Simply create an instance of a XinePlayer and add it to your AWT/Swing stuff. The two provided examples, TestCanvas and TestPlayer, clearly shows it.

When launching the JVM, the native library (libXineCanvasNative.so) must be in your classpath:

java -Djava.library.path=XineCanvasNative ....

The libxine.so must be in your system linking path (Generally /usr/lib) or specify it through the LD_LIBRARY_PATH environment variable. In my system I use:

export LD_LIBRARY_PATH=/usr/local/lib

Downloads and Docs

To contact me, please look at the source project page.

TODO

Links