MediaPlayer: impossible to run under Windows or Mac OS X
Issue
- Under Windows or Mac OS X, the MediaPlayer extension is not able to run VLC binary to play media files;
- TXM JNI code seems to have trouble to get to the VLC binary and library files.
Diagnostic (general)
The issue seems related to the libraries file path used by JNI.
Diagnostic for MacOSX
From https://github.com/caprica/vlcj/issues/349
It seems like VLCJ calls a native library (MacOSX) called LibVLC and
this library has a wrong path.
This could be solved by resetting the VLC_PLUGIN_PATH to the correct
value which is
/Applications/VLC.app/Contents/MacOS/plugins
Another way to workaround is to modify the VLC application folder, with a symlink, to conform to the wrong LibVLC path…
Suggestion
Find out what is or are the library paths vlcj.jar
is using and try to
set JNI libraries file path properly.
Workaround
* for Windows: copy VLC binary files (executable, libraries…) into TXM executable directory.
* for Mac OS X:
cd /Applications/VLC.app/Contents/MacOS/lib
mkdir vlc
cd vlc
ln -s ../../plugins .
(from redmine: issue id 937, created on 2014/07/13 by Serge Heiden)