[vlc] JVLC testing...

Javier Gálvez Guerrero javier.galvez.guerrero at gmail.com
Tue Aug 5 12:04:30 CEST 2008


Hi,

I'm checking the JAR library for JVLC from the official site (2008-07-27
SNAPSHOT), so I created an Eclipse project and copied the VlcClient sample
code from JVLC site while replacing the playlist item by MediaListPlayer and
related methods (attached is the modified version).

Anyway, when I try to run it the following error appears:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up
function 'libvlc_media_list_new': /usr/lib/libvlc.so: undefined symbol:
libvlc_media_list_new
   at com.sun.jna.Function.<init>(Function.java:126)
   at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:219)
   at com.sun.jna.Library$Handler.invoke(Library.java:191)
   at com.sun.jna.Native$2.invoke(Native.java:577)
   at $Proxy0.libvlc_media_list_new(Unknown Source)
   at org.videolan.jvlc.MediaList.<init>(MediaList.java:53)
   at org.videolan.jvlc.JVLC.<init>(JVLC.java:57)
   at jvlc.VLCPlayerFrame.initComponents(JvlcTest.java:67)
   at jvlc.VLCPlayerFrame.<init>(JvlcTest.java:48)
   at jvlc.JvlcTest.main(JvlcTest.java:219)I followed JVLC site instructions
in order to add /usr/lib to the library path. There I have libvlc.so and
libvlc.so.0; it seems I don't have any libvlc-control.so file in my system.
My OS is Ubuntu Linux 8.04 and I run VLC 0.8.6e and JDK 1.6 update 6.

My questions are:

- What is this error caused for?
- Can anybody provide me with a simple sample code to check JVLC library
(just to see how to play a video)?

Some time ago, in the JVLC site, there was a kind of Javadoc but, as the
library classes and methods have changed it has become useless. So I don't
know pretty well how to use the different classes so that's why I'm asking
for help.

Any help would be much appreciated. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20080805/bdb11159/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JvlcTest.java
Type: text/x-java
Size: 6527 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20080805/bdb11159/attachment.java>


More information about the vlc mailing list