Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VLCJ without installing VLC

Tags:

vlcj

I'd like to ship a self-contained java app using vlcj and read the SAQs (http://code.google.com/p/vlcj/wiki/SAQ) which suggested this was possible if one ships all of the shared objects or DLL's for libvlc and the vlc plugins needed. Could someone please help with how this might be practically done? Thanks, D

like image 531
user1505631 Avatar asked Feb 26 '13 02:02

user1505631


Video Answer


1 Answers

I have done this. What I did was package the dll's and plugin's directory with the app. I placed it in the lib directory.

I then added the path to the VLCj libraries to the command line arguments -Djna.library.path={Application Location}/lib

Directory contents

lib
-- libblc.dll
-- libvlc5.dll
-- {etc}
/plugins
   /3dnow
   /access
   {etc}

The trick is that you have to be careful what target OS you are shooting for. I limited the app to use Windows only. To use multiple operating systems, you have to carefully select the correct native libraries.

Hope that helps.

like image 52
Beatty Avatar answered Sep 28 '22 12:09

Beatty